class ImportException extends UserMessageException (View source)

Constants

E_PHP_FILE_ERROR_DEFAULT

Standard PHP error: there is no error, the file uploaded with success.

E_PHP_FILE_EXCEEDS_UPLOAD_MAX_FILESIZE

Standard PHP error: the uploaded file exceeds the upload_max_filesize directive in php.ini.

E_PHP_FILE_EXCEEDS_HTML_MAX_FILE_SIZE

Standard PHP error: the uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.

E_PHP_FILE_PARTIAL_UPLOAD

Standard PHP error: the uploaded file was only partially uploaded.

E_PHP_NO_FILE

Standard PHP error: no file was uploaded.

E_PHP_NO_TMP_DIR

Standard PHP error: missing a temporary folder.

E_PHP_CANT_WRITE

Standard PHP error: failed to write file to disk.

E_PHP_EXTENSION

Standard PHP error: a PHP extension stopped the file upload.

E_FILE_INVALID_EXTENSION

concrete5 internal error: invalid file extension.

E_FILE_INVALID

concrete5 internal error: pointer is invalid file, is a directory, etc.

..

E_FILE_UNABLE_TO_STORE

concrete5 internal error: unable to copy file to storage location.

E_FILE_INVALID_STORAGE_LOCATION

concrete5 internal error: default file storage location not found.

E_FILE_UNABLE_TO_STORE_PREFIX_PROVIDED

concrete5 internal error: unable to copy file to storage location (with provided prefix).

E_FILE_EXCEEDS_POST_MAX_FILE_SIZE

concrete5 internal error: Uploaded file is too large.

E_FILE_MISSING_ROOT_FOLDER

concrete5 internal error: missing root folder object.

Properties

protected bool $canBeLogged

Can this exception be added to the log?

from  UserMessageException
private bool Since: concrete5 8.5.0a3
$messageContainsHtml

Does the message contain an HTML-formatted string?

from  UserMessageException

Methods

bool
canBeLogged()

Can this exception be added to the log?

$this
setCanBeLogged(bool $value)

Can this exception be added to the log?

bool
messageContainsHtml()

Does the message contain an HTML-formatted string?

$this
setMessageContainsHtml(bool $value)

Does the message contain an HTML-formatted string?

jsonSerialize()

{@inheritdoc}

__toString()

{@inheritdoc}

static ImportException
fromErrorCode(string $code, Exception|Throwable|null $innerException = null)

Create a new instance given the error code.

static string
describeErrorCode(int $code)

Returns a text string explaining the error that was passed.

Details

bool canBeLogged()

Can this exception be added to the log?

Return Value

bool

$this setCanBeLogged(bool $value)

Can this exception be added to the log?

Parameters

bool $value

Return Value

$this

bool messageContainsHtml()

Since: concrete5 8.5.0a3

Does the message contain an HTML-formatted string?

$this setMessageContainsHtml(bool $value)

Since: concrete5 8.5.0a3

Does the message contain an HTML-formatted string?

Parameters

bool $value

Return Value

$this

jsonSerialize()

{@inheritdoc}

See also

\JsonSerializable::jsonSerialize()

__toString()

{@inheritdoc}

See also

\Exception::__toString()

static ImportException fromErrorCode(string $code, Exception|Throwable|null $innerException = null)

Create a new instance given the error code.

Parameters

string $code
Exception|Throwable|null $innerException

Return Value

ImportException

static string describeErrorCode(int $code)

Returns a text string explaining the error that was passed.

Parameters

int $code

Return Value

string