Medical Appointments API

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
author

Luis Graciano contacto@luisgraciano.dev

Table of Contents

$error_code  : string
__construct()  : mixed
Constructor for the BusinessValidationException.
getErrorCode()  : string
Get the error code for the business validation error.

Properties

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.

Search results