net.javacrumbs.smock.common
Class SourceAndControlAssertionError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by java.lang.AssertionError
              extended by net.javacrumbs.smock.common.SourceAndControlAssertionError
All Implemented Interfaces:
Serializable

public class SourceAndControlAssertionError
extends AssertionError

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

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

Constructor Summary
SourceAndControlAssertionError(String message, String messageLabel, Source messageSource, String controlLabel, Source controlSource)
          Creates assertion error.
 
Method Summary
 String getControlLabel()
           
 Source getControlSource()
           
 String getMessage()
           
 
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

SourceAndControlAssertionError

public SourceAndControlAssertionError(String message,
                                      String messageLabel,
                                      Source messageSource,
                                      String controlLabel,
                                      Source controlSource)
Creates assertion error.

Parameters:
message -
messageLabel -
messageSource -
controlLabel -
controlSource -
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getControlLabel

public String getControlLabel()

getControlSource

public Source getControlSource()


Copyright © 2011. All Rights Reserved.