As the name says, it is made to be basic and direct.
BasicisException Class Exception extends \Exception Every HTTP client related exception MUST implement this interface.
class Throwable {
public getMessage ( void ) : string
public getCode ( void ) : int
public getFile ( void ) : string
public getLine ( void ) : int
public getTrace ( void ) : array
public getTraceAsString ( void ) : string
public getPrevious ( void ) : Throwable
public __toString ( void ) : string
public function log() : void
}
Stringable, Throwable
Exception
Name | Description |
---|---|
log | Function log |
Name | Description |
---|---|
__construct | Construct the exception |
__toString | String representation of the exception |
__wakeup | - |
getCode | Gets the Exception code |
getFile | Gets the file in which the exception was created |
getLine | Gets the line in which the exception was created |
getMessage | Gets the Exception message |
getPrevious | Returns previous Exception |
getTrace | Gets the stack trace |
getTraceAsString | Gets the stack trace as a string |
Description
public log (int $level, string $message=null, array $context)
Function log
Levels
Parameters
(int) $level
(string) $message=null
(array) $context
Return Values
\BasicisException