Creates a ServiceError object from the parameters of a Promisefail
callback.
parseError = function(jqXHR, statusText, errorThrown)
static parseError(jqXHR: any, statusText: string, errorThrown: string): ServiceError;
jqXHR
The calling jQuery object.
statusText
String describing the type of error that occurred.
errorThrown
optional exception object, if one occurred.
When a Documents Library Service call fails for any reason, the Promise object returned from
that method will call its fail
handler. The arguments provided to a function registered in the fail handler are the jQuery jqXHR object
(a superset of the XML Http Response object), a statusText string, and an errorThrown string.
If the error occurred within the Documents Service, all three of these parameters should have values. If the error occurred while parsing or
delivering the data (and thus was not the fault of the service), only errorThrown
, the third argument, will have a value.
If a UploadFile service call was
aborted using the special abort
method, all of the parameters to the fail
callback will be null.
These three objects can be passed to ParseError as-is to create a new ServiceError object. ParseError parses the name of the original method call as a string and sets it as MethodName.
See ServiceError or Promises in the Documents Library Service for more information.
Products |
Support |
Feedback: parseError Method (ServiceError) - Leadtools.Documents |
Introduction |
Help Version 19.0.2017.3.21
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.