Exception¶
-
class
atk4\core\
Exception
¶ - All exceptions generated by Agile Core will use this class.
Source: vendor/atk4/core/src/Exception.php#15 Parent: Exception
Summary¶
Properties¶
-
public static property
atk4\core\Exception::$
trace2
¶ Source: vendor/atk4/core/src/Exception.php#24 Type: array
Methods¶
-
public
atk4\core\Exception::
__construct
($message="", $code=0, $previous=null)¶ - Constructor.
Source: Parameters: - $message (string | array)
- $code (int)
- $previous (
Throwable
)
-
public
atk4\core\Exception::
setMessage
($message)¶ - Change message (subject) of a current exception. Primary use isfor localization purposes.
Source: Parameters: - $message (string)
Returns: $this
-
public
atk4\core\Exception::
getMyTrace
()¶ - Return trace array.
Source: vendor/atk4/core/src/Exception.php#68 Returns: array
-
public
atk4\core\Exception::
getColorfulText
()¶ - Output exception message using color sequences.<exception name>: <string><info>trace–<triggered by>
Source: vendor/atk4/core/src/Exception.php#86 Returns: string
-
public
atk4\core\Exception::
getHTMLText
()¶ - Similar to getColorfulText() but will use raw HTML for outputting colors.
Source: vendor/atk4/core/src/Exception.php#171 Returns: string
-
public
atk4\core\Exception::
getHTML
()¶ - Output exception message using HTML block and Semantic UI formatting. It’s your jobto put it inside boilerplate HTML and output, e.g:.$l = new \atk4\ui\App();$l->initLayout(‘Centered’);$l->layout->template->setHTML(‘Content’, $e->getHTML());$l->run();exit;
Source: vendor/atk4/core/src/Exception.php#261 Returns: string
-
public
atk4\core\Exception::
toString
($val)¶ - Safely converts some value to string.
Source: Parameters: - $val (mixed)
Returns: string
-
public
atk4\core\Exception::
getParams
()¶ - Follow the getter-style of PHP Exception.
Source: vendor/atk4/core/src/Exception.php#396 Returns: array
-
public
atk4\core\Exception::
addMoreInfo
($param, $value)¶ - Augment existing exception with more info.
Source: Parameters: - $param (string)
- $value (mixed)
Returns: $this