Path

ez components / documentation / api reference / latest / webdav


eZ Components latest

Webdav: ezcWebdavInvalidHeaderException

[ Tutorial ] [ Clients ] [ Plugin architecture ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcWebdavInvalidHeaderException

Exception thrown when a request/response object receives an invalid header value. [source]
ezcWebdavRequest::validateHeaders() will throw this exception, if a header, which is essential to the specific request, is not present. ezcWebdavTransport::sendResponse() will throw this exception if a Content-Type or Content-Length header is set in an empty body request.

Parents

Exception
   |
   --ezcBaseException
      |
      --ezcWebdavException
         |
         --ezcWebdavBadRequestException
            |
            --ezcWebdavInvalidHeaderException

Inherited Member Variables

From ezcBaseException:
public  ezcBaseException::$originalMessage
From Exception (Internal Class):
protected  $code
protected  $file
protected  $line
protected  $message
private  $string
private  $trace

Method Summary

public void __construct( $headerName, $value, [$expectedValue = null] )
Initializes the exception with the given $headerName, $value (the value of the named header) and $expectedValue and sets the exception message from it.

Inherited Methods

From ezcBaseException :
public ezcBaseException ezcBaseException::__construct()
Constructs a new ezcBaseException with $message
From Exception (Internal Class) :
public Exception constructor __construct ( $message, $code )
public void getCode ( )
public void getFile ( )
public void getLine ( )
public void getMessage ( )
public void getTrace ( )
public void getTraceAsString ( )
public void __clone ( )
public void __toString ( )

Methods

__construct

void __construct( string $headerName, string $value, [string $expectedValue = null] )
Initializes the exception with the given $headerName, $value (the value of the named header) and $expectedValue and sets the exception message from it.

Parameters

Name Type Description
$headerName string Name of the affected header.
$value string Contained value.
$expectedValue string Expected values.

Redefinition of

Method Description
ezcBaseException::__construct() Constructs a new ezcBaseException with $message

Last updated: Mon, 21 Dec 2009