MACException
class MACException extends HashException (View source)
Exception class for MAC errors
Constants
HASH_ALGORITHM_NOT_FOUND |
Hash algorithm '%s' not found |
STATIC_METHOD_NOT_FOUND |
Hash static method '%s' not found |
STATIC_METHOD_TOO_MANY_ARGS |
Hash static method %s can accept max one argument |
INIT_FAILED |
Initialization of hash failed |
UPDATE_FAILED |
Updating of hash context failed |
DIGEST_FAILED |
Creating of hash digest failed |
INPUT_DATA_LENGTH_HIGH |
Input data length can't exceed max integer length |
MAC_ALGORITHM_NOT_FOUND |
MAC algorithm '%s' not found |
KEY_LENGTH_INVALID |
The key length for MAC is invalid |
Properties
protected | $message | The error message |
from Exception |
protected | $code | The error code |
from Exception |
protected | $file | The filename where the error happened |
from Exception |
protected | $line | The line where the error happened |
from Exception |
Methods
Construct the exception. Note: The message is NOT binary safe.
Details
__construct(string $message = "", int $code = 0, null|Throwable $previous = null)
Construct the exception. Note: The message is NOT binary safe.
final string
getMessage()
Gets the Exception message
final int
getCode()
Gets the Exception code
final string
getFile()
Gets the file in which the exception occurred
final int
getLine()
Gets the line in which the exception occurred
final array
getTrace()
Gets the stack trace
final null|Throwable
getPrevious()
Returns previous Exception
final string
getTraceAsString()
Gets the stack trace as a string
string
__toString()
String representation of the exception
void
__wakeup()
No description