enforceImageLoad

fnvoid enforceImageLoad(int errorCode, string filename = null)

Throws an ImageLoadException if the error code indicates failure.

Parameters

errorCodeThe error code to check
filenameThe filename being loaded (for error message)

Throws

ImageLoadException if errorCode != 0