\CryptoManana\FactoriesExceptionFactory

Class ExceptionFactory - Factory object for framework exception instancing.

Summary

Methods
Properties
Constants
__construct()
create()
__debugInfo()
createInstance()
No public properties found
CRYPTOGRAPHY_PROBLEM
BAD_PRACTICE
UNSUPPORTED_ALGORITHM
BACKWARD_INCOMPATIBLE
ACCESS_DENIED
BREACH_ATTEMPT
MALICIOUS_PAYLOAD
BOT_DETECTED
IDENTIFICATION_FAILURE
AUTHENTICATION_FAILURE
AUTHORIZATION_FAILURE
SESSION_EXPIRED
TOKEN_EXPIRED
WRONG_CONFIGURATION
INSECURE_USAGE
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

CRYPTOGRAPHY_PROBLEM

CRYPTOGRAPHY_PROBLEM

The `cryptography` exception type.

BAD_PRACTICE

BAD_PRACTICE

The `bad practice` exception type.

UNSUPPORTED_ALGORITHM

UNSUPPORTED_ALGORITHM

The `unsupported algorithm` exception type.

BACKWARD_INCOMPATIBLE

BACKWARD_INCOMPATIBLE

The `backward incompatible` exception type.

ACCESS_DENIED

ACCESS_DENIED

The `access denied` exception type.

BREACH_ATTEMPT

BREACH_ATTEMPT

The `breach attempt` exception type.

MALICIOUS_PAYLOAD

MALICIOUS_PAYLOAD

The `malicious payload` exception type.

BOT_DETECTED

BOT_DETECTED

The `bot detected` exception type.

IDENTIFICATION_FAILURE

IDENTIFICATION_FAILURE

The `identification failure` exception type.

AUTHENTICATION_FAILURE

AUTHENTICATION_FAILURE

The `authentication failure` exception type.

AUTHORIZATION_FAILURE

AUTHORIZATION_FAILURE

The `authorization failure` exception type.

SESSION_EXPIRED

SESSION_EXPIRED

The `session expired` exception type.

TOKEN_EXPIRED

TOKEN_EXPIRED

The `token expired` exception type.

WRONG_CONFIGURATION

WRONG_CONFIGURATION

The `wrong configuration` exception type.

INSECURE_USAGE

INSECURE_USAGE

The `insecure usage` exception type.

Methods

__construct()

__construct() 

Factory constructor.

create()

create(string|null  $type) : \CryptoManana\Core\Abstractions\ErrorHandling\AbstractException|object|null

Create a framework exception.

Parameters

string|null $type

The exception class name as type for creation.

Returns

\CryptoManana\Core\Abstractions\ErrorHandling\AbstractException|object|null —

An exception object or null.

__debugInfo()

__debugInfo() : array

Get debug information for the class instance.

Returns

array —

Debug information.

createInstance()

createInstance(string|null  $type) : \CryptoManana\Core\Abstractions\ErrorHandling\AbstractException|object|null

Create a framework exception.

Parameters

string|null $type

The exception class name as type for creation.

Returns

\CryptoManana\Core\Abstractions\ErrorHandling\AbstractException|object|null —

An exception object or null.