/** * CommandException constructor. * * @param string $message The exception message. * @param int $code The exception code. * @param Exception|null $previous A previous exception. */ public function __construct($message = 'Undefined exception message.', $code = CommandException::COMMAND_EXCEPTION_UNDEFINED, Exception $previous = null) { parent::__construct('Command Exception: ' . $message, $code, $previous); }
/** * ServerConfigException constructor. * * @param string $message The exception message. * @param int $code The exception code. * @param Exception|null $previous A previous exception. */ public function __construct($message = 'Undefined exception message.', $code = ServerConfigException::SERVER_CONFIG_EXCEPTION_UNDEFINED, Exception $previous = null) { parent::__construct('Server Config Exception: ' . $message, $code, $previous); }
/** * APIException constructor. * * @param string $message The exception message. * @param int $code The exception code. * @param Exception|null $previous A previous exception. */ public function __construct($message = 'Undefined exception message.', $code = APIException::API_EXCEPTION_UNDEFINED, Exception $previous = null) { parent::__construct('API Exception: ' . $message, $code, $previous); }
/** * AuthenticationConfigException constructor. * * @param string $message The exception message. * @param int $code The exception code. * @param Exception|null $previous A previous exception. */ public function __construct($message = 'Undefined exception message.', $code = AuthenticationConfigException::AUTHENTICATION_CONFIG_EXCEPTION_UNDEFINED, Exception $previous = null) { parent::__construct('Authentication Config Exception: ' . $message, $code, $previous); }
/** * VersionException constructor. * * @param string $message The exception message. * @param int $code The exception code. * @param Exception|null $previous A previous exception. */ public function __construct($message = 'Undefined exception message.', $code = VersionException::VERSION_CONFIG_EXCEPTION_UNDEFINED, Exception $previous = null) { parent::__construct('Version Config Exception: ' . $message, $code, $previous); }