Exception class

access public
package kocuj_sitemap
inherited_from \KocujIL\V12a\Classes\Exception

 Methods

Constructor

__construct(integer $code, string $file, integer $line, string $param = '') : void
access public
inherited_from \KocujIL\V12a\Classes\Exception::__construct()

Parameters

$code

integer

Error code

$file

string

Filename where there was an error; should be set to __FILE__ during throwing an exception

$line

integer

Line number where there was an error; should be set to __LINE__ during throwing an exception

$param

string

Optional argument for error message - default: empty

Constructor

__construct(object $componentObj, integer $code, string $file, integer $line, string $param = '') : void
Inherited
access public

Parameters

$componentObj

object

Component object; if empty, it will not be used in exception codes and message

$code

integer

Error code

$file

string

Filename where there was an error; should be set to __FILE__ during throwing an exception

$line

integer

Line number where there was an error; should be set to __LINE__ during throwing an exception

$param

string

Optional argument for error message - default: empty

Get optional argument for error message

getParam() : string
Inherited
access public

Returns

stringOptional argument for error message

Get errors

getErrors() : array
Inherited
access protected

Returns

arrayErrors

Get errors data

getExceptionName() : string
Inherited
access protected

Returns

stringException name

Set errors data

setErrors() : void
access protected
inherited_from \KocujIL\V12a\Classes\Exception::setErrors()

Set errors data

setErrors() : void
Inherited
access protected

 Properties

 

Errors data

$errors : array

Default

array()
access protected
 

Namespace prefix

$namespacePrefix : string

Default

''
access protected
inherited_from \KocujIL\V12a\Classes\Exception::namespacePrefix
 

Namespace prefix

$namespacePrefix : string

Default

'KocujIL\\V12a'
access protected
 

Optional argument for error message

$param : array

Default

''
access private