Class SourceAssertionError
java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.AssertionError
org.springframework.ws.test.support.SourceAssertionError
- All Implemented Interfaces:
Serializable
Subclass of
AssertionError
that also contains a Source
for more context.- Since:
- 2.0.1
- Author:
- Lukas Krecan, Arjen Poutsma
- See Also:
-
Constructor Summary
ConstructorDescriptionSourceAssertionError
(String detailMessage, String sourceLabel, Source source) Creates a new instance of theSourceAssertionError
class with the given parameters. -
Method Summary
Modifier and TypeMethodDescriptionReturns the source context of this error.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SourceAssertionError
Creates a new instance of theSourceAssertionError
class with the given parameters.
-
-
Method Details
-
getSource
Returns the source context of this error.- Returns:
- the source
-
getMessage
- Overrides:
getMessage
in classThrowable
-