org.springframework.ws.test.support
Class SourceAssertionError

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

public class SourceAssertionError
extends java.lang.AssertionError

Subclass of AssertionError that also contains a Source for more context.

Since:
2.0.1
Author:
Lukas Krecan, Arjen Poutsma
See Also:
Serialized Form

Constructor Summary
SourceAssertionError(java.lang.String detailMessage, java.lang.String sourceLabel, javax.xml.transform.Source source)
          Creates a new instance of the SourceAssertionError class with the given parameters.
 
Method Summary
 java.lang.String getMessage()
           
 javax.xml.transform.Source getSource()
          Returns the source context of this error.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceAssertionError

public SourceAssertionError(java.lang.String detailMessage,
                            java.lang.String sourceLabel,
                            javax.xml.transform.Source source)
Creates a new instance of the SourceAssertionError class with the given parameters.

Method Detail

getSource

public javax.xml.transform.Source getSource()
Returns the source context of this error.

Returns:
the source

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable


Copyright © 2011. All Rights Reserved.