LogicException extends SystemException
Class LogicException
Tags
Table of Contents
Methods
- __construct() : mixed
- Creates new logic exception object.
- getLocMessage() : string
- Returns localized message
Methods
__construct()
Creates new logic exception object.
public
__construct([string $message = '' ][, string $locMessageKey = '' ][, int $code = 0 ][, string $file = '' ][, int $line = 0 ][, Exception $previous = null ]) : mixed
Parameters
- $message : string = ''
-
The Exception message to throw.
- $locMessageKey : string = ''
-
The Exception message localization key. Helpful for output message directly to user.
- $code : int = 0
-
The Exception code.
- $file : string = ''
-
The filename where the exception is thrown.
- $line : int = 0
-
The line number where the exception is thrown.
- $previous : Exception = null
-
The previous exception used for the exception chaining.
getLocMessage()
Returns localized message
public
getLocMessage() : string