NotUnifiedValuesException
extends Exception
in package
Exception thrown when not all values are unified.
Unified means that all values are of the same type.
Table of Contents
Constants
- NOT_UNIFIED_ARRAY = 'All array values must be of same type'
- NOT_UNIFIED_START_END = '$start and $end parameters must be of same type'
Methods
- __construct() : mixed
- Create a new NotUnifiedValuesException.
- __toString() : string
- String representation of the exception.
Constants
NOT_UNIFIED_ARRAY
public
final mixed
NOT_UNIFIED_ARRAY
= 'All array values must be of same type'
NOT_UNIFIED_START_END
public
final mixed
NOT_UNIFIED_START_END
= '$start and $end parameters must be of same type'
Methods
__construct()
Create a new NotUnifiedValuesException.
public
__construct(string $error) : mixed
Parameters
- $error : string
-
The error message.
__toString()
String representation of the exception.
public
__toString() : string
Return values
string —String representation of the exception.