org.modeshape.sequencer.ddl

## Class DdlParserProblem

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - org.modeshape.common.text.ParsingException
        - - org.modeshape.sequencer.ddl.DdlParserProblem

- All Implemented Interfaces:
    Serializable, DdlConstants.Problems

      public class DdlParserProblem
      extends ParsingException
      implements DdlConstants.Problems

  A special form of `DdlConstants.Problems` that is also a `ParsingException`.
  See Also:
    Serialized Form

- - ### Field Summary

    - ### Fields inherited from interface org.modeshape.sequencer.ddl.DdlConstants.Problems

      `ERROR, OK, WARNING`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `DdlParserProblem(int level, Position position, String message)`
    `DdlParserProblem(int level, Position position, String message, Throwable cause)`
    `DdlParserProblem(Position position)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `appendSource(boolean addSpaceBefore, String value)`
    `void` | `appendSource(boolean addSpaceBefore, String value, String... additionalStrs)`
    `int` | `getLevel()`
    `String` | `getUnusedSource()`
    `void` | `setLevel(int level)`
    `void` | `setUnusedSource(String unusedSource)`
    `String` | `toString()`

    - ### Methods inherited from class org.modeshape.common.text.ParsingException

      `getPosition`

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### DdlParserProblem

          public DdlParserProblem(Position position)

    - #### DdlParserProblem

          public DdlParserProblem(int level,
                          Position position,
                          String message,
                          Throwable cause)

    - #### DdlParserProblem

          public DdlParserProblem(int level,
                          Position position,
                          String message)

  - ### Method Detail

    - #### getUnusedSource

          public String getUnusedSource()

      Returns:
        the unused statement string

    - #### setUnusedSource

          public void setUnusedSource(String unusedSource)

    - #### appendSource

          public void appendSource(boolean addSpaceBefore,
                          String value)

    - #### appendSource

          public void appendSource(boolean addSpaceBefore,
                          String value,
                          String... additionalStrs)

    - #### getLevel

          public int getLevel()

    - #### setLevel

          public void setLevel(int level)

      Parameters:
        `level` - Sets level to the specified value.

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Throwable`

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.