Class Go
LengthException
class LengthException {
- public string $message;
- public int $code;
- public string $class;
- public function __construct(string $string, int $num);
- public function get_code(): int;
- public function get_message(): string;
- public function throwable_class(): string;
}
Description
LengthException is a class phpscript declares.
$object = new LengthException($string, $num);
Properties
public string $message-
The go field
Message. public int $code-
The go field
Code. public string $class-
The go field
Class.
Methods
public function get_code(): int-
get_code returns the error code of the exception.
The go method
GetCode. public function get_message(): string-
get_message returns the error message of the exception.
The go method
GetMessage. public function throwable_class(): string-
throwable_class returns the PHP class the exception declares, implementing runner.Throwable.
The go method
ThrowableClass.
Binding
- The go type
github.com/titpetric/phpscript/stdlib.Exception. - Registered by the package
github.com/titpetric/phpscript/stdlib. - Built on
github.com/titpetric/phpscript/stdlib.Exception. - Satisfies
github.com/titpetric/phpscript/runner.Throwable, which a script namesThrowable.