Package: groovy.transform.stc

## [Java] Class IncorrectTypeHintException

- groovy.transform.stc.IncorrectTypeHintException

-     public class IncorrectTypeHintException
      extends SyntaxException

  Indicates that a ClosureParams hint declaration is invalid.

  Since:
    2.3.0

- - ### Constructor Summary

    Constructors
    Constructor and description
    `IncorrectTypeHintException(MethodNode mn, Throwable e, int line, int column)` Creates an exception describing a failure caused by another exception.
    `IncorrectTypeHintException(MethodNode mn, String msg, int line, int column)` Creates an exception describing an invalid hint message.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class SyntaxException` | `getEndColumn, getEndLine, getLine, getMessage, getOriginalMessage, getSourceLocator, getStartColumn, getStartLine, setSourceLocator`
    `class GroovyException` | `isFatal, setFatal`

- - ### Constructor Detail

    - #### 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

    - #### 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