Stud.IP  6.1
Exception Class Reference
Inheritance diagram for Exception:
FeatureDisabledException ResourceBookingException ResourceBookingOverlapException Exception InvalidCacheArgumentException EnrolmentException KeyringException LTIException UrlException MembershipException ToolException

Public Member Functions

 __construct (string $message='', int $code=0, ?\Range $range=null)
 
 getInformation ()
 
 getRange ()
 

Data Fields

const GENERAL_ERROR = 0
 
const END_BEFORE_BEGINNING = 1
 

Protected Attributes

Range $range = null
 

Detailed Description

This class is a specialisation of the standard Exception class to distinguish Stud.IP exceptions from standard exceptions.

Constructor & Destructor Documentation

◆ __construct()

__construct ( string  $message = '',
int  $code = 0,
?\Range  $range = null 
)

Member Function Documentation

◆ getInformation()

getInformation ( )

Converts the content of the exception into an Information object.

Returns
Information An Information representation of the exception.

◆ getRange()

getRange ( )
Returns
|null The range of the exception.

Field Documentation

◆ $range

Range $range = null
protected

◆ END_BEFORE_BEGINNING

const END_BEFORE_BEGINNING = 1

END_BEFORE_BEGINNING means that a time range is specified where the end lies before the beginning.

◆ GENERAL_ERROR

const GENERAL_ERROR = 0

GENERAL_ERROR means that an unspecified error has occurred.


The documentation for this class was generated from the following file: