BusinessValidationException
extends Exception
in package
Exception class for business validation errors.
This exception is thrown when a business validation error occurs in the application. It extends the base Exception class and adds an error code to identify the specific validation error. The error code can be retrieved using the 'getErrorCode' method.
Tags
Table of Contents
- $error_code : string
- __construct() : mixed
- Constructor for the BusinessValidationException.
- getErrorCode() : string
- Get the error code for the business validation error.
Properties
$error_code
private
string
$error_code
The error code for the business validation error.
Methods
__construct()
Constructor for the BusinessValidationException.
public
__construct(string $code, string $message[, Exception|null $previous = null ]) : mixed
Parameters
- $code : string
-
The error code for the business validation error.
- $message : string
-
The error message.
- $previous : Exception|null = null
-
The previous exception used for chaining.
Return values
mixed —getErrorCode()
Get the error code for the business validation error.
public
getErrorCode() : string
Return values
string —The error code.