org.spockframework.mock
Class CannotCreateMockException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.spockframework.mock.CannotCreateMockException
All Implemented Interfaces:
Serializable

public class CannotCreateMockException
extends RuntimeException

Thrown when an attempt to create a mock object fails.

Author:
Peter Niederwieser
See Also:
Serialized Form

Constructor Summary
CannotCreateMockException(Class<?> mockType, String msg)
           
CannotCreateMockException(Class<?> mockType, Throwable cause)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

CannotCreateMockException

public CannotCreateMockException(Class<?> mockType,
                                 String msg)

CannotCreateMockException

public CannotCreateMockException(Class<?> mockType,
                                 Throwable cause)


Copyright © 2010. All Rights Reserved.