MagratheaApiException
extends MagratheaException
in package
Class for Magrathea Api Errors
Table of Contents
Properties
- $_data : mixed
- $code : mixed
- $killerError : mixed
- $msg : mixed
- $status : mixed
Methods
- __construct() : mixed
- __toString() : string
- display() : mixed
- GetData() : mixed
- getMsg() : mixed
- SetData() : MagratheaApiException
- Set data
- SetStatus() : MagratheaApiException
- Set status
- stackTrace() : mixed
Properties
$_data
public
mixed
$_data
= null
$code
public
mixed
$code
= 0
$killerError
public
mixed
$killerError
= false
$msg
public
mixed
$msg
= ""
$status
public
mixed
$status
Methods
__construct()
public
__construct([mixed $message = "Magrathea Api Error" ][, mixed $code = 0 ][, mixed $data = null ][, mixed $kill = true ][, Exception $previous = null ]) : mixed
Parameters
- $message : mixed = "Magrathea Api Error"
- $code : mixed = 0
- $data : mixed = null
- $kill : mixed = true
- $previous : Exception = null
__toString()
public
__toString() : string
Return values
stringdisplay()
public
display() : mixed
GetData()
public
GetData() : mixed
getMsg()
public
getMsg() : mixed
SetData()
Set data
public
SetData(array<string|int, mixed>|object $data) : MagratheaApiException
Parameters
- $data : array<string|int, mixed>|object
-
data
Return values
MagratheaApiExceptionSetStatus()
Set status
public
SetStatus(mixed $st) : MagratheaApiException
Parameters
- $st : mixed
Return values
MagratheaApiExceptionstackTrace()
public
stackTrace() : mixed