\MainWP\DashboardMainWP_Exception

Class MainWP_Exception

Summary

Methods
Properties
Constants
__construct()
get_message_extra()
get_message_error_code()
set_data()
get_data()
No public properties found
No constants found
No protected methods found
$messageExtra
$errorCode
$data
N/A
No private methods found
No private properties found
N/A

Properties

$messageExtra

$messageExtra : string

Protected variable to hold the extra messages.

Type

string — Error messages.

$errorCode

$errorCode : string

Protected variable to hold the Error Code.

Type

string — Error Code.

$data

$data : array

Protected variable to hold the extra data.

Type

array — data.

Methods

__construct()

__construct(mixed  $message, null  $extra = null, string  $errCode = '') 

MainWP_Exception constructor.

Grab Exception Message upon creation of the object.

Parameters

mixed $message

Exception message.

null $extra

Any extra Errors.

string $errCode

Errors code.

get_message_extra()

get_message_extra() : \MainWP\Dashboard\$messageExtra

Method get_message_extra()

Returns

\MainWP\Dashboard\$messageExtra —

Extra messages.

get_message_error_code()

get_message_error_code() : string

Method get_message_error_code()

Returns

string —

$errorCode Errors code.

set_data()

set_data(mixed  $data) 

Method set_data()

Parameters

mixed $data

Addition data.

get_data()

get_data() : \MainWP\Dashboard\$data

Method get_data()

Returns

\MainWP\Dashboard\$data —

Addition data.