Spring Web Services Framework

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:
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:
Serialized Form

Constructor Summary
SourceAssertionError(String detailMessage, String sourceLabel, Source source)
          Creates a new instance of the SourceAssertionError class with the given parameters.
 
Method Summary
 String getMessage()
           
 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(String detailMessage,
                            String sourceLabel,
                            Source source)
Creates a new instance of the SourceAssertionError class with the given parameters.

Method Detail

getSource

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

Returns:
the source

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.