Class ParseException

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID
      This exception serialVersionUID.
    • Constructor Summary

      Constructors 
      Constructor Description
      ParseException​(java.lang.String message)
      Constructs a new ParseException with the specified detail message.
      ParseException​(java.lang.Throwable e)
      Constructs a new ParseException wrapping the specified exception.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ParseException wrap​(java.lang.Throwable e)
      Converts any exception except UnsupportedOperationException to a ParseException.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        This exception serialVersionUID.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ParseException

        public ParseException​(java.lang.String message)
        Constructs a new ParseException with the specified detail message.
        Parameters:
        message - the detail message
      • ParseException

        public ParseException​(java.lang.Throwable e)
        Constructs a new ParseException wrapping the specified exception.
        Parameters:
        e - the Exception to wrap.
    • Method Detail

      • wrap

        public static ParseException wrap​(java.lang.Throwable e)
                                   throws java.lang.UnsupportedOperationException
        Converts any exception except UnsupportedOperationException to a ParseException. if e is an instance of ParseException it is returned, otherwise a ParseException is created that wraps it.

        Note: UnsupportedOperationException are not wrapped. This is to solve a legacy expected exception problem and will be removed in the future.

        Parameters:
        e - the exception to convert.
        Returns:
        the ParseException.
        Throws:
        java.lang.UnsupportedOperationException - due to legacy expectations. Will be removed in the future.
        Since:
        1.7.0