org.spockframework.runtime
Class InvalidSpecException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.spockframework.runtime.InvalidSpecException
All Implemented Interfaces:
java.io.Serializable

public class InvalidSpecException
extends java.lang.RuntimeException

Indicates that a Spec has done something it is not supposed to do. It is up to the Spec author to correct the problem.

Author:
Peter Niederwieser
See Also:
Serialized Form

Constructor Summary
InvalidSpecException(java.lang.String msg)
           
InvalidSpecException(java.lang.String msg, java.lang.Throwable throwable)
           
 
Method Summary
 java.lang.String getMessage()
           
 InvalidSpecException withArgs(java.lang.Object... args)
           
 
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

InvalidSpecException

public InvalidSpecException(java.lang.String msg)

InvalidSpecException

public InvalidSpecException(java.lang.String msg,
                            java.lang.Throwable throwable)
Method Detail

withArgs

public InvalidSpecException withArgs(java.lang.Object... args)

getMessage

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


Copyright © 2013. All rights reserved