JpegLoadException

Inheritance: java.lang.Object, java.lang.Throwable, java.lang.Exception, java.lang.RuntimeException, com.aspose.ms.System.Exception, com.aspose.imaging.coreexceptions.ImageException, com.aspose.imaging.coreexceptions.imageformats.JpegException

public class JpegLoadException extends JpegException

Represents the JPEG image loading exception.

Constructors

ConstructorDescription
JpegLoadException(String message)Initializes a new instance of the JpegLoadException class.
JpegLoadException(String message, Throwable innerException)Initializes a new instance of the JpegLoadException class.
JpegLoadException(String message, int reason)Initializes a new instance of the JpegLoadException class.
JpegLoadException(String message, Throwable innerException, int reason)Initializes a new instance of the JpegLoadException class.

Methods

MethodDescription
getReason()Gets or sets the reason of error.
setReason(int value)Gets or sets the reason of error.

JpegLoadException(String message)

public JpegLoadException(String message)

Initializes a new instance of the JpegLoadException class.

Parameters:

ParameterTypeDescription
messagejava.lang.StringThe exception message.

JpegLoadException(String message, Throwable innerException)

public JpegLoadException(String message, Throwable innerException)

Initializes a new instance of the JpegLoadException class.

Parameters:

ParameterTypeDescription
messagejava.lang.StringThe message.
innerExceptionjava.lang.ThrowableThe inner exception.

JpegLoadException(String message, int reason)

public JpegLoadException(String message, int reason)

Initializes a new instance of the JpegLoadException class.

Parameters:

ParameterTypeDescription
messagejava.lang.StringThe exception message.
reasonintThe reason of error.

JpegLoadException(String message, Throwable innerException, int reason)

public JpegLoadException(String message, Throwable innerException, int reason)

Initializes a new instance of the JpegLoadException class.

Parameters:

ParameterTypeDescription
messagejava.lang.StringThe exception message.
innerExceptionjava.lang.ThrowableThe inner exception.
reasonintThe reason of error.

getReason()

public int getReason()

Gets or sets the reason of error.

Value: The reason of error.

Returns: int

setReason(int value)

public void setReason(int value)

Gets or sets the reason of error.

Value: The reason of error.

Parameters:

ParameterTypeDescription
valueint