Class SourceAssertionError

java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.AssertionError
org.springframework.ws.test.support.SourceAssertionError
All Implemented Interfaces:
Serializable

public class SourceAssertionError extends AssertionError
Subclass of AssertionError that also contains a Source for more context.
Since:
2.0.1
Author:
Lukas Krecan, Arjen Poutsma
See Also:
  • Constructor Details

    • SourceAssertionError

      public SourceAssertionError(String detailMessage, String sourceLabel, Source source)
      Creates a new instance of the SourceAssertionError class with the given parameters.
  • Method Details

    • getSource

      public Source getSource()
      Returns the source context of this error.
      Returns:
      the source
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable