GalleryStatus GalleryStatus(
int
$errorCode, [string
$errorMessage = null]
)
|
|
Constructor
Parameters:
int |
$errorCode: |
an error code |
string |
$errorMessage: |
(optional) descriptive message of the error |
void addErrorCode(
int
$code
)
|
|
Add a new code to our set of codes
Parameters:
string getAsHtml(
[boolean
$showMessage = true]
)
|
|
Return the error as an HTML string
Parameters:
boolean |
$showMessage: |
(optional) false to omit errorMessage |
string getAsText(
[boolean
$showMessage = true]
)
|
|
Return the error as a plain text string delimited by newlines
Parameters:
boolean |
$showMessage: |
(optional) false to omit errorMessage |
Return the actual error code
array getErrorCodeConstants(
$errorCode
)
|
|
Break down an error code into a list of constants
Parameters:
API Tags:
string getErrorMessage(
)
|
|
Return the error message
Store error in session for reporting after a redirect
void setStackTrace(
array
$trace
)
|
|
Set the stack trace
Parameters:
array |
$trace: |
(array, array) |
Deprecated. Remove in the next major API bump.
Add a new file name and line number to our stack trace
API Tags:
Return: | the new status object |
Deprecated: | |
Internal function collect error code and stack trace info
API Tags: