-
Notifications
You must be signed in to change notification settings - Fork 0
API Exceptions MFXException
Christophe SAUVEUR edited this page Sep 29, 2024
·
1 revision
class MFXException extends Exception
Base exception class for all MFX code
Since 2.0
public function __construct(HttpStatusCodes $code = 'chsxf\MFX\HttpStatusCodes::badRequest', string $message = '', ?Throwable $previous = null)
Constructor
Since 2.0
Name | Type | Description |
---|---|---|
$code |
HttpStatusCodes |
HTTP status code associated to the Exception (defaults to 400 Bad Request) |
$message |
string |
The exception message |
$previous |
`null | Throwable` |
public function getHttpCode(): HttpStatusCodes
Returns the HTTP status code associated with the exception
Since 2.0
HttpStatusCodes
Getting Started | Framework Reference | API Reference | MFX is released under the MIT license