\CryptoManana\Core\Interfaces\ErrorHandlingEditableExceptionInterface

Interface EditableExceptionInterface - Interface allowing exceptions to have property setter methods.

Summary

Methods
Constants
setMessage()
setCode()
setFile()
setLine()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

setMessage()

setMessage(string|mixed  $message) : $this

Change the exception's error message via fluent interface call.

Parameters

string|mixed $message

Set a different error message.

Returns

$this —

The exception object.

setCode()

setCode(integer  $code) : $this

Change the exception's error code via fluent interface call.

Parameters

integer $code

Set a different exception error code.

Returns

$this —

The exception object.

setFile()

setFile(string|mixed  $file) : $this

Change the file location where the exception occurred via fluent interface call.

Parameters

string|mixed $file

Set a different file path for the exception.

Returns

$this —

The exception object.

setLine()

setLine(integer  $line) : $this

Change the file location where the exception occurred via fluent interface call.

Parameters

integer $line

Set a different file line for the exception.

Returns

$this —

The exception object.