Skip to content

Commit

Permalink
Merge pull request #7 from arif98741/dev
Browse files Browse the repository at this point in the history
Merge Request
  • Loading branch information
sim8568X authored Jun 13, 2023
2 parents 1e5717a + 473df21 commit 9fb97f3
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions src/Handler/XenonException.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,22 @@

namespace Xenon\Multisms\Handler;


class XenonException extends \Exception
{
/**
* Report the exception.
*
* @return void
*/
public function report()
public function __construct($message, $code = 0, Throwable $previous = null)
{
// Call the parent constructor
parent::__construct($message, $code, $previous);
}

/**
* Render the exception into an HTTP response.
*
* @param Request $request
* @return Response
*/
public function render(Request $request)
public function __toString()
{

return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
}

}
}

0 comments on commit 9fb97f3

Please sign in to comment.