class MigrateException extends Exception (View source)

Defines the migrate exception class.

Properties

protected int $level

The level of the error being reported.

protected int $status

The status to record in the map table for the current item.

Methods

__construct(string $message = NULL, int $code = 0, Exception $previous = NULL, int $level = MigrationInterface::MESSAGE_ERROR, int $status = MigrateIdMapInterface::STATUS_FAILED)

Constructs a MigrateException object.

int
getLevel()

Gets the level.

int
getStatus()

Gets the status of the current item.

Details

__construct(string $message = NULL, int $code = 0, Exception $previous = NULL, int $level = MigrationInterface::MESSAGE_ERROR, int $status = MigrateIdMapInterface::STATUS_FAILED)

Constructs a MigrateException object.

Parameters

string $message

The message for the exception.

int $code

The Exception code.

Exception $previous

The previous exception used for the exception chaining.

int $level

The level of the error, a Migration::MESSAGE_* constant.

int $status

The status of the item for the map table, a MigrateMap::STATUS_* constant.

int getLevel()

Gets the level.

Return Value

int

An integer status code. Migration::MESSAGE_*

int getStatus()

Gets the status of the current item.

Return Value

int

An integer status code. MigrateMap::STATUS_*