Class SourceException

All Implemented Interfaces:
Serializable, FromSourceLocation
Direct Known Subclasses:
ExpectationNotMetException, ModelSyntaxException, NodeDeserializationException

public class SourceException extends RuntimeException implements FromSourceLocation
An exception that can be traced back to a SourceLocation.
See Also:
  • Constructor Details

  • Method Details

    • getSourceLocation

      public SourceLocation getSourceLocation()
      Description copied from interface: FromSourceLocation
      Gets the source location of a value.
      Specified by:
      getSourceLocation in interface FromSourceLocation
      Returns the source location of the value.
    • getMessageWithoutLocation

      public String getMessageWithoutLocation()
      Retrieves the message for this exception without the appended source location.
      The trimmed message.