Exception class

access public
package kocuj_internal_lib

 Methods

Constructor

__construct(object $componentObj, integer $code, string $file, integer $line, string $param = '') : void
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
access public

Returns

stringOptional argument for error message

Get errors

getErrors() : array
access protected

Returns

arrayErrors

Get errors data

getExceptionName() : string
access protected

Returns

stringException name

Set errors data

setErrors() : void
access protected

 Properties

 

Errors data

$errors : array

Default

array()
access protected
 

Namespace prefix

$namespacePrefix : string

Default

'KocujIL\\V12a'
access protected
 

Optional argument for error message

$param : array

Default

''
access private