Package ej.microvg
Class VectorGraphicsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- ej.microvg.VectorGraphicsException
-
- All Implemented Interfaces:
Serializable
public class VectorGraphicsException extends RuntimeException
Thrown to indicate that a method has caused an internal VectorGraphics error. This error is specified by an identifier and this identifier can be retrieved callinggetErrorCode().- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intFONT_INVALIDException thrown when a font cannot be loaded.static intFONT_INVALID_PATHException thrown when a font cannot be retrieved.static intIMAGE_INVALIDException thrown when an image cannot be drawn.static intIMAGE_INVALID_PATHException thrown when an image cannot be retrieved.static intIMAGE_OVERLAPPING_ELEMENTSException thrown when an image with overlapping elements is drawn or filtered with a transparent alpha.static intIMAGE_PARSING_ERRORException thrown when an image could not be loaded because of a parsing error.static intNO_COMPLEX_LAYOUTER_ERRORException thrown when a font is loaded with complex text layout enabled but no complex layouter is available.static intOUT_OF_MEMORYException thrown when an out of memory error occurs.static intRESOURCE_CLOSEDException thrown when the application is trying to use a resource that has been closed.
-
Constructor Summary
Constructors Constructor Description VectorGraphicsException(int errorCode)Constructs an exception with the specified error code.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetErrorCode()Gets the reason why the exception has been thrown.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, toString
-
-
-
-
Field Detail
-
IMAGE_INVALID_PATH
public static final int IMAGE_INVALID_PATH
Exception thrown when an image cannot be retrieved. Path must be relative to the application classpath and starts with '/'.Value
-1is assigned toIMAGE_INVALID_PATH.- See Also:
- Constant Field Values
-
IMAGE_INVALID
public static final int IMAGE_INVALID
Exception thrown when an image cannot be drawn.Value
-2is assigned toIMAGE_INVALID.- See Also:
- Constant Field Values
-
IMAGE_OVERLAPPING_ELEMENTS
public static final int IMAGE_OVERLAPPING_ELEMENTS
Exception thrown when an image with overlapping elements is drawn or filtered with a transparent alpha.Value
-3is assigned toIMAGE_OVERLAPPING_ELEMENTS.- See Also:
- Constant Field Values
-
FONT_INVALID_PATH
public static final int FONT_INVALID_PATH
Exception thrown when a font cannot be retrieved. Path must be relative to the application classpath and starts with '/'.Value
-4is assigned toFONT_INVALID_PATH.- See Also:
- Constant Field Values
-
FONT_INVALID
public static final int FONT_INVALID
Exception thrown when a font cannot be loaded.Value
-5is assigned toFONT_INVALID.- See Also:
- Constant Field Values
-
RESOURCE_CLOSED
public static final int RESOURCE_CLOSED
Exception thrown when the application is trying to use a resource that has been closed.Value
-6is assigned toRESOURCE_CLOSED.- See Also:
- Constant Field Values
-
IMAGE_PARSING_ERROR
public static final int IMAGE_PARSING_ERROR
Exception thrown when an image could not be loaded because of a parsing error.Value
-7is assigned toIMAGE_PARSING_ERROR.- See Also:
- Constant Field Values
-
NO_COMPLEX_LAYOUTER_ERROR
public static final int NO_COMPLEX_LAYOUTER_ERROR
Exception thrown when a font is loaded with complex text layout enabled but no complex layouter is available.Value
-8is assigned toNO_COMPLEX_LAYOUTER_ERROR.- See Also:
- Constant Field Values
-
OUT_OF_MEMORY
public static final int OUT_OF_MEMORY
Exception thrown when an out of memory error occurs.Value
-9is assigned toOUT_OF_MEMORY.- See Also:
- Constant Field Values
-
-