Module dev.civl.mc

Class CIVLException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CIVLExecutionException, CIVLInternalException, CIVLSyntaxException, CIVLUnimplementedFeatureException

public class CIVLException extends RuntimeException
Root of CIVL exception hierarchy, representing any kind of event where something goes wrong in CIVL.
See Also:
  • Field Details

    • source

      protected CIVLSource source
      Source of the element that led to exception, for error reporting. May be null.
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Throwable
    • getSource

      public CIVLSource getSource()
      Returns:
      the source code element associated with this exception