Class LimitExceededException

  • All Implemented Interfaces:
    java.io.Serializable

    public class LimitExceededException
    extends InvalidDataException
    exception which indicates that the message limited was exceeded (CloseFrame.TOOBIG)
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int limit
      A closer indication about the limit
      private static long serialVersionUID
      Serializable
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getLimit()
      Get the limit which was hit so this exception was caused
      • 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
        Serializable
        See Also:
        Constant Field Values
      • limit

        private final int limit
        A closer indication about the limit
    • Constructor Detail

      • LimitExceededException

        public LimitExceededException()
        constructor for a LimitExceededException

        calling LimitExceededException with closecode TOOBIG

      • LimitExceededException

        public LimitExceededException​(int limit)
        constructor for a LimitExceededException

        calling InvalidDataException with closecode TOOBIG

        Parameters:
        limit - the allowed size which was not enough
      • LimitExceededException

        public LimitExceededException​(java.lang.String s,
                                      int limit)
        constructor for a LimitExceededException

        calling InvalidDataException with closecode TOOBIG

        Parameters:
        s - the detail message.
        limit - the allowed size which was not enough
      • LimitExceededException

        public LimitExceededException​(java.lang.String s)
        constructor for a LimitExceededException

        calling InvalidDataException with closecode TOOBIG

        Parameters:
        s - the detail message.
    • Method Detail

      • getLimit

        public int getLimit()
        Get the limit which was hit so this exception was caused
        Returns:
        the limit as int