public final class JPRACompilerResolverException extends JPRACompilerException
| Constructor and Description |
|---|
JPRACompilerResolverException(Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> in_lex,
JPRAResolverErrorCode in_code,
Exception e)
Construct an exception.
|
JPRACompilerResolverException(Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> in_lex,
JPRAResolverErrorCode in_code,
String message)
Construct an exception.
|
getLexicalInformationaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic JPRACompilerResolverException(Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> in_lex, JPRAResolverErrorCode in_code, String message)
in_lex - Lexical information, if anyin_code - The error codemessage - The exception messagepublic JPRACompilerResolverException(Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> in_lex, JPRAResolverErrorCode in_code, Exception e)
in_lex - Lexical information, if anyin_code - The error codee - The causepublic static JPRACompilerResolverException duplicatePackage(PackageNameQualified name, PackageNameQualified original)
name - The package nameoriginal - The original declarationJPRAResolverErrorCode.PACKAGE_DUPLICATEpublic static JPRACompilerResolverException noCurrentPackage(Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> lex)
lex - Lexical informationJPRAResolverErrorCode.NO_CURRENT_PACKAGEpublic static JPRACompilerResolverException nestedPackage(PackageNameQualified name)
name - The package nameJPRAResolverErrorCode.PACKAGE_NESTEDpublic static JPRACompilerResolverException packageImportConflict(PackageNameUnqualified existing_name, PackageNameUnqualified new_name)
existing_name - The original namenew_name - The new nameJPRAResolverErrorCode.PACKAGE_IMPORT_CONFLICTpublic static JPRACompilerResolverException duplicateType(TypeName current, TypeName original)
current - The current type nameoriginal - The original type nameJPRAResolverErrorCode.TYPE_DUPLICATEpublic static JPRACompilerResolverException nonexistentPackage(PackageNameQualified name)
name - The package nameJPRAResolverErrorCode.PACKAGE_NONEXISTENTpublic static JPRACompilerResolverException nonexistentPackageReference(PackageNameUnqualified name)
name - The package nameJPRAResolverErrorCode.PACKAGE_REFERENCE_NONEXISTENTpublic static JPRACompilerResolverException nonexistentType(Optional<PackageNameQualified> q_name, TypeName t_name)
q_name - The package name, if anyt_name - The type nameJPRAResolverErrorCode.TYPE_NONEXISTENTpublic static JPRACompilerResolverException unexpectedEOF(Optional<com.io7m.jlexing.core.ImmutableLexicalPositionType<Path>> lex_opt)
lex_opt - Lexical information, if anyJPRAResolverErrorCode.UNEXPECTED_EOFpublic static JPRACompilerResolverException unexpectedPackage(PackageNameQualified expected, PackageNameQualified got)
expected - The expected packagegot - The received packageJPRAResolverErrorCode.UNEXPECTED_PACKAGEpublic static JPRACompilerResolverException expectedPackage(PackageNameQualified p)
p - The expected packageJPRAResolverErrorCode.EXPECTED_PACKAGEpublic JPRAResolverErrorCode getErrorCode()
Copyright © 2015 <code@io7m.com> http://io7m.com