public final class JPRACompilerCheckerException extends JPRACompilerException
| Constructor and Description |
|---|
JPRACompilerCheckerException(Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> in_lex,
JPRACheckerErrorCode in_code,
Exception e)
Construct an exception.
|
JPRACompilerCheckerException(Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> in_lex,
JPRACheckerErrorCode in_code,
String message)
Construct an exception.
|
getLexicalInformationaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic JPRACompilerCheckerException(Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> in_lex, JPRACheckerErrorCode in_code, String message)
in_lex - Lexical information, if anyin_code - The error codemessage - The exception messagepublic JPRACompilerCheckerException(Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> in_lex, JPRACheckerErrorCode in_code, Exception e)
in_lex - Lexical information, if anyin_code - The error codee - The causepublic static <T extends SizeUnitType> JPRACompilerCheckerException integerSizeNotSupported(TypeExprType<IdentifierType,Untyped> e, Size<T> size, com.gs.collections.api.list.ImmutableList<com.io7m.jranges.RangeInclusiveB> sizes)
T - The precise type of size unitse - The expressionsize - The sizesizes - The supported sizesJPRACheckerErrorCode.RECORD_INTEGER_SIZE_UNSUPPORTEDpublic static JPRACompilerCheckerException floatSizeNotSupported(TypeExprFloat<IdentifierType,Untyped> e, Size<SizeUnitBitsType> size, com.gs.collections.api.list.ImmutableList<com.io7m.jranges.RangeInclusiveB> sizes)
e - The expressionsize - The sizesizes - The supported sizesJPRACheckerErrorCode.RECORD_FLOAT_SIZE_UNSUPPORTEDpublic static JPRACompilerCheckerException stringEncodingNotSupported(TypeExprString<IdentifierType,Untyped> e, String encoding, com.gs.collections.api.set.ImmutableSet<String> encodings)
e - The expressionencoding - The string encodingencodings - The supported encodingsJPRACheckerErrorCode.STRING_ENCODING_UNSUPPORTEDpublic static JPRACompilerCheckerException booleanSetSizeInvalid(TypeExprBooleanSet<IdentifierType,Untyped> e, com.io7m.jranges.RangeInclusiveB range, BigInteger value)
e - The expressionrange - The valid size rangevalue - The sizeJPRACheckerErrorCode.BOOLEAN_SET_SIZE_INVALIDpublic static JPRACompilerCheckerException booleanSetSizeLessThanRequired(TypeExprBooleanSet<IdentifierType,Untyped> e, BigInteger required, BigInteger value)
e - The expressionrequired - The required spacevalue - The sizeJPRACheckerErrorCode.BOOLEAN_SET_SIZE_TOO_SMALLpublic static JPRACompilerCheckerException vectorSizeNotSupported(TypeExprVector<IdentifierType,Untyped> e, BigInteger size, com.gs.collections.api.list.ImmutableList<com.io7m.jranges.RangeInclusiveB> supported)
e - The expressionsize - The sizesupported - The supported sizesJPRACheckerErrorCode.VECTOR_SIZE_UNSUPPORTEDpublic static JPRACompilerCheckerException vectorNonScalarElement(TypeExprVector<IdentifierType,Untyped> e)
e - The expressionJPRACheckerErrorCode.VECTOR_NON_SCALAR_TYPEpublic static JPRACompilerCheckerException vectorIntegerSizeNotSupported(TIntegerType e, BigInteger size, com.gs.collections.api.list.ImmutableList<com.io7m.jranges.RangeInclusiveB> supported)
e - The expressionsize - The sizesupported - The supported sizesJPRACheckerErrorCode.VECTOR_SIZE_INTEGER_UNSUPPORTEDpublic static JPRACompilerCheckerException vectorFloatSizeNotSupported(TFloat e, BigInteger size, com.gs.collections.api.list.ImmutableList<com.io7m.jranges.RangeInclusiveB> supported)
e - The expressionsize - The sizesupported - The supported sizesJPRACheckerErrorCode.VECTOR_SIZE_FLOAT_UNSUPPORTEDpublic static JPRACompilerCheckerException matrixNotSupported(TypeExprMatrix<IdentifierType,Untyped> e, BigInteger tw, BigInteger th, com.gs.collections.api.list.ImmutableList<com.io7m.jfunctional.Pair<com.io7m.jranges.RangeInclusiveB,com.io7m.jranges.RangeInclusiveB>> supported)
e - The expressiontw - The widthth - The heightsupported - The supported sizesJPRACheckerErrorCode.MATRIX_SIZE_UNSUPPORTEDpublic static JPRACompilerCheckerException matrixNonScalarElement(TypeExprMatrix<IdentifierType,Untyped> e)
e - The expressionJPRACheckerErrorCode.MATRIX_NON_SCALAR_TYPEpublic static JPRACompilerCheckerException matrixFloatSizeNotSupported(TFloat e, BigInteger size, com.gs.collections.api.list.ImmutableList<com.io7m.jranges.RangeInclusiveB> supported)
e - The expressionsize - The sizesupported - The supported sizesJPRACheckerErrorCode.MATRIX_SIZE_FLOAT_UNSUPPORTEDpublic static JPRACompilerCheckerException matrixIntegerSizeNotSupported(TIntegerType e, BigInteger size, com.gs.collections.api.list.ImmutableList<com.io7m.jranges.RangeInclusiveB> supported)
e - The expressionsize - The sizesupported - The supported sizesJPRACheckerErrorCode.MATRIX_SIZE_INTEGER_UNSUPPORTEDpublic static JPRACompilerCheckerException paddingSizeInvalid(Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> lex, BigInteger value)
lex - Lexical informationvalue - The size valueJPRACheckerErrorCode.PADDING_SIZE_INVALIDpublic static JPRACompilerCheckerException packedNonIntegerType(PackedFieldDeclValue<IdentifierType,Untyped> r, TypeExprType<IdentifierType,TType> rvt)
r - The field declarationrvt - The type expressionJPRACheckerErrorCode.PACKED_NON_INTEGERpublic static JPRACompilerCheckerException packedSizeNotSupported(TypeName name, BigInteger size, com.gs.collections.api.list.ImmutableList<com.io7m.jranges.RangeInclusiveB> supported)
name - The type namesize - The size in bitssupported - The supported sizesJPRACheckerErrorCode.PACKED_SIZE_NOT_SUPPORTEDpublic JPRACheckerErrorCode getErrorCode()
Copyright © 2016 <code@io7m.com> http://io7m.com