ExceptionsInhaltsverzeichnis
SPL bietet einige Standard-Exceptions an. Siehe auch Vordefinierte Exceptions SPL Exceptions Class Tree
The BadFunctionCallException classEinführungException thrown if a callback refers to an undefined function or if some arguments are missing. KlassenbeschreibungBadFunctionCallException
class BadFunctionCallException
extends
LogicException
{
/* Geerbte Eigenschaften */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Geerbte Methoden */
final public string Exception::getMessage
( void
)
final public Exception Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The BadMethodCallException classEinführungException thrown if a callback refers to an undefined method or if some arguments are missing. KlassenbeschreibungBadMethodCallException
class BadMethodCallException
extends
BadFunctionCallException
{
/* Geerbte Eigenschaften */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Geerbte Methoden */
final public string Exception::getMessage
( void
)
final public Exception Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The DomainException classEinführungException thrown if a value does not adhere to a defined valid data domain. KlassenbeschreibungDomainException
class DomainException
extends
LogicException
{
/* Geerbte Eigenschaften */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Geerbte Methoden */
final public string Exception::getMessage
( void
)
final public Exception Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The InvalidArgumentException classEinführungException thrown if an argument is not of the expected type. KlassenbeschreibungInvalidArgumentException
class InvalidArgumentException
extends
LogicException
{
/* Geerbte Eigenschaften */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Geerbte Methoden */
final public string Exception::getMessage
( void
)
final public Exception Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The LengthException classEinführungException thrown if a length is invalid. KlassenbeschreibungLengthException
class LengthException
extends
LogicException
{
/* Geerbte Eigenschaften */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Geerbte Methoden */
final public string Exception::getMessage
( void
)
final public Exception Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The LogicException classEinführungException that represents error in the program logic. This kind of exception should lead directly to a fix in your code. KlassenbeschreibungLogicException
class LogicException
extends
Exception
{
/* Geerbte Eigenschaften */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Geerbte Methoden */
final public string Exception::getMessage
( void
)
final public Exception Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The OutOfBoundsException classEinführungException thrown if a value is not a valid key. This represents errors that cannot be detected at compile time. KlassenbeschreibungOutOfBoundsException
class OutOfBoundsException
extends
RuntimeException
{
/* Geerbte Eigenschaften */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Geerbte Methoden */
final public string Exception::getMessage
( void
)
final public Exception Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The OutOfRangeException classEinführungException thrown when an illegal index was requested. This represents errors that should be detected at compile time. KlassenbeschreibungOutOfRangeException
class OutOfRangeException
extends
LogicException
{
/* Geerbte Eigenschaften */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Geerbte Methoden */
final public string Exception::getMessage
( void
)
final public Exception Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The OverflowException classEinführungException thrown when adding an element to a full container. KlassenbeschreibungOverflowException
class OverflowException
extends
RuntimeException
{
/* Geerbte Eigenschaften */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Geerbte Methoden */
final public string Exception::getMessage
( void
)
final public Exception Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The RangeException classEinführungException thrown to indicate range errors during program execution. Normally this means there was an arithmetic error other than under/overflow. This is the runtime version of DomainException. KlassenbeschreibungRangeException
class RangeException
extends
RuntimeException
{
/* Geerbte Eigenschaften */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Geerbte Methoden */
final public string Exception::getMessage
( void
)
final public Exception Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The RuntimeException classEinführungException thrown if an error which can only be found on runtime occurs. KlassenbeschreibungRuntimeException
class RuntimeException
extends
Exception
{
/* Geerbte Eigenschaften */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Geerbte Methoden */
final public string Exception::getMessage
( void
)
final public Exception Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The UnderflowException classEinführungException thrown when performing an invalid operation on an empty container, such as removing an element. KlassenbeschreibungUnderflowException
class UnderflowException
extends
RuntimeException
{
/* Geerbte Eigenschaften */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Geerbte Methoden */
final public string Exception::getMessage
( void
)
final public Exception Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
}The UnexpectedValueException classEinführungException thrown if a value does not match with a set of values. Typically this happens when a function calls another function and expects the return value to be of a certain type or value not including arithmetic or buffer related errors. KlassenbeschreibungUnexpectedValueException
class UnexpectedValueException
extends
RuntimeException
{
/* Geerbte Eigenschaften */
protected
string
$message
;
protected
int
$code
;
protected
string
$file
;
protected
int
$line
;
/* Geerbte Methoden */
final public string Exception::getMessage
( void
)
final public Exception Exception::getPrevious
( void
)
final public mixed Exception::getCode
( void
)
final public string Exception::getFile
( void
)
final public int Exception::getLine
( void
)
final public array Exception::getTrace
( void
)
final public string Exception::getTraceAsString
( void
)
public string Exception::__toString
( void
)
final private void Exception::__clone
( void
)
} |