Class IncorrectTypeHintException

All Implemented Interfaces:
Serializable, GroovyExceptionInterface

public class IncorrectTypeHintException extends SyntaxException
Indicates that a ClosureParams hint declaration is invalid.
Since:
2.3.0
See Also:
  • Constructor Details

    • IncorrectTypeHintException

      public IncorrectTypeHintException(MethodNode mn, Throwable e, int line, int column)
      Creates an exception describing a failure caused by another exception.
      Parameters:
      mn - the method containing the invalid hint
      e - the underlying cause
      line - the source line
      column - the source column
    • IncorrectTypeHintException

      public IncorrectTypeHintException(MethodNode mn, String msg, int line, int column)
      Creates an exception describing an invalid hint message.
      Parameters:
      mn - the method containing the invalid hint
      msg - the validation message
      line - the source line
      column - the source column