The amount of memory required and the memory usage limit are included in the error detail message in human readable format.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | MemoryLimitException(int
amount of memory needed as kibibytes (KiB) memoryNeeded, int specified memory usage limit as kibibytes (KiB) memoryLimit)Creates a new MemoryLimitException. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: memory usage limit as kibibytes (KiB)Gets what the memory usage limit was at the time the exception was created. |
| public int | Returns: amount of memory needed as kibibytes (KiB)Gets how much memory is required to decompress the data. |
| memoryLimit | back to summary |
|---|---|
| private final int memoryLimit | |
| memoryNeeded | back to summary |
|---|---|
| private final int memoryNeeded | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| MemoryLimitException | back to summary |
|---|---|
| public MemoryLimitException(int memoryNeeded, int memoryLimit) Creates a new MemoryLimitException. The amount of memory needed and the memory usage limit are included in the error detail message.
| |
| getMemoryLimit | back to summary |
|---|---|
| public int getMemoryLimit() Gets what the memory usage limit was at the time the exception was created.
| |
| getMemoryNeeded | back to summary |
|---|---|
| public int getMemoryNeeded() Gets how much memory is required to decompress the data.
| |