Class TruncationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class TruncationException
    extends TypeCastException
    This exception is a specific subtype of the type-cast exception that is thrown when a type-conversion would cause a truncation of a value.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      TruncationException()
      Create a new TruncationException with no message or cause.
      TruncationException​(java.lang.String message)
      Create a new TruncationException with the specified message.
      TruncationException​(java.lang.String message, java.lang.Throwable cause)
      Create a new TruncationException with the specified message and cause.
      TruncationException​(java.lang.Throwable cause)
      Create a new TruncationException with the specified cause.
    • Method Summary

      • 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
    • Constructor Detail

      • TruncationException

        public TruncationException()
        Create a new TruncationException with no message or cause.
      • TruncationException

        public TruncationException​(java.lang.String message)
        Create a new TruncationException with the specified message.
      • TruncationException

        public TruncationException​(java.lang.Throwable cause)
        Create a new TruncationException with the specified cause.
      • TruncationException

        public TruncationException​(java.lang.String message,
                                   java.lang.Throwable cause)
        Create a new TruncationException with the specified message and cause.