| 1 | package uk.me.parabola.imgfmt; |
| 2 | |
| 3 | public class MapTooBigException extends MapFailedException { |
| 4 | protected final long maxAllowedSize; |
| 5 | |
| 6 | public MapTooBigException(long maxSize, String message, String suggestion) { |
| 7 | super(message + " The maximum size is " + maxSize + " bytes. " + suggestion, false); |
| 8 | maxAllowedSize = maxSize; |
| 9 | } |
| 10 | |
| 11 | public long getMaxAllowedSize() { |
| 12 | return maxAllowedSize; |
| 13 | } |
| 14 | } |