LimitMemoryException

Inheritance: java.lang.Object, java.lang.Throwable, java.lang.Error, java.lang.VirtualMachineError, java.lang.OutOfMemoryError, com.aspose.ms.System.OutOfMemoryException

public class LimitMemoryException extends System.OutOfMemoryException

The limit memory exception. Occurs when memory usage should be reduced.

Constructors

ConstructorDescription
LimitMemoryException(String message)Initializes a new instance of the LimitMemoryException class.
LimitMemoryException(String message, Throwable innerException)Initializes a new instance of the LimitMemoryException class.
LimitMemoryException(String message, long reduceMemoryFactor)Initializes a new instance of the LimitMemoryException class.
LimitMemoryException(String message, Throwable innerException, int reduceMemoryFactor)Initializes a new instance of the LimitMemoryException class.

Methods

MethodDescription
getReduceMemoryFactor()Gets or sets the reduce memory factor.
setReduceMemoryFactor(long value)Gets or sets the reduce memory factor.

LimitMemoryException(String message)

public LimitMemoryException(String message)

Initializes a new instance of the LimitMemoryException class.

Parameters:

ParameterTypeDescription
messagejava.lang.StringThe exception message.

LimitMemoryException(String message, Throwable innerException)

public LimitMemoryException(String message, Throwable innerException)

Initializes a new instance of the LimitMemoryException class.

Parameters:

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

LimitMemoryException(String message, long reduceMemoryFactor)

public LimitMemoryException(String message, long reduceMemoryFactor)

Initializes a new instance of the LimitMemoryException class.

Parameters:

ParameterTypeDescription
messagejava.lang.StringThe exception message.
reduceMemoryFactorlongThe reduce memory factor.

LimitMemoryException(String message, Throwable innerException, int reduceMemoryFactor)

public LimitMemoryException(String message, Throwable innerException, int reduceMemoryFactor)

Initializes a new instance of the LimitMemoryException class.

Parameters:

ParameterTypeDescription
messagejava.lang.StringThe exception message.
innerExceptionjava.lang.ThrowableThe inner exception.
reduceMemoryFactorintThe reduce memory factor.

getReduceMemoryFactor()

public long getReduceMemoryFactor()

Gets or sets the reduce memory factor.

Value: The reduce memory factor.

Returns: long

setReduceMemoryFactor(long value)

public void setReduceMemoryFactor(long value)

Gets or sets the reduce memory factor.

Value: The reduce memory factor.

Parameters:

ParameterTypeDescription
valuelong