A specific kind of UploadException: the server had a problem.

It's recommended that you also log the temporary directory and currently installed extensions for their diagnostic value. The exception message does not include these details for security, but the exception provides a method for extracting them. Example:


try {
    $it = new UploadIterator;
} catch (ServerProblemException $ex) {
    error_log($ex->getDiagnosticMessage());
    throw $ex;
}
package Haldayne
inherited_from \Haldayne\Customs\UploadException

 Methods

Returns a string containing deeper diagnostics of the system state at the time the server problem occurred.

getDiagnosticMessage() : string
API

Server problems may not last long (a lot of simultaneous uploads temporarily eats all the upload space) or may be semi-permanent (an extension is preventing all uploads). It's therefore important to know as much as possible about the system at the time of the problem.

This method captures the free space available, loaded extensions, and session id into a string for foresnic diagnostics.

api
since 1.0.0

Returns

string

Get the HTML variable name.

getHtmlName() : string
APIInherited
api
since 1.0.0

Returns

string

Return the message specific for this exception code.

getMessage() : string
API
api
since 1.0.0

Returns

string

 Properties

 

The HTML name we were given.

$htmlName : string

Default