error Property

Summary

An error describing the reason for the image load failure from Run.

Syntax
TypeScript
JavaScript
Object.defineProperty(ImageLoader.prototype, 'error', 
	get: function() 
) 
error: Error; // read-only 

Property Value

An error object if the image load failed; otherwise, null.

Remarks

When Run is called, the image request begins. If the request fails to load for any reason, Element will not be set to the loaded image and Error will be set to an error. The Fail and Always events will then be fired. If the request fails due to ImageLoaderPreRunEventArgs.Cancel from PreRun or ImageLoaderPreSendEventArgs.Cancel from PreSend, the error will

In most cases, your browser will also log the failed image request to the browser's developer tools console.

This property is cleared when Dispose is called.

See Run for more information.

Requirements

Target Platforms

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools Assembly