Package org.spockframework.runtime
Class InvalidSpecException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- 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
Constructors Constructor Description InvalidSpecException(java.lang.String msg)
InvalidSpecException(java.lang.String msg, java.lang.Throwable throwable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage()
InvalidSpecException
withArgs(java.lang.Object... args)
-
-
-
Method Detail
-
withArgs
public InvalidSpecException withArgs(java.lang.Object... args)
-
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in classjava.lang.Throwable
-
-