Class GroovyCastException

All Implemented Interfaces:
Serializable

public class GroovyCastException extends ClassCastException
See Also:
  • Constructor Details

    • GroovyCastException

      public GroovyCastException(Object objectToCast, Class classToCastTo, Exception cause)
      Parameters:
      objectToCast - object we tried to cast
      classToCastTo - class we tried to cast to
      cause - not kept but we pass on message from this Exception if any
    • GroovyCastException

      public GroovyCastException(Object objectToCast, Class classToCastTo)
      Parameters:
      objectToCast - object we tried to cast
      classToCastTo - class we tried to cast to
    • GroovyCastException

      public GroovyCastException(String message)
      Parameters:
      message - custom Exception message