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 |
getDiagnosticMessage() : string
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 |
string
getHtmlName() : string
api | |
---|---|
since | 1.0.0 |
string
getMessage() : string
api | |
---|---|
since | 1.0.0 |
string
$htmlName : string