Class FieldLimitReachedException

  • All Implemented Interfaces:
    java.io.Serializable

    public class FieldLimitReachedException
    extends java.lang.RuntimeException

    Indicates that an attempt to add a field to a FieldManager failed because the maximum number of fields have already been added to it.

    See Also:
    FieldManager.addField(String, int), Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      FieldLimitReachedException​(int fieldLimit)
      Constructs the FieldLimitReachedException with the specified field limit.
      FieldLimitReachedException​(int fieldLimit, java.lang.String message)
      Constructs the FieldLimitReachedException with the specified field limit and description.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getFieldLimit()
      Gets the maximum number of fields that are allowed by the FieldManager.
      java.lang.String toString()  
      • 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

      • FieldLimitReachedException

        public FieldLimitReachedException​(int fieldLimit)

        Constructs the FieldLimitReachedException with the specified field limit.

        Parameters:
        fieldLimit - The maximum number of fields that are allowed by the FieldManager.
      • FieldLimitReachedException

        public FieldLimitReachedException​(int fieldLimit,
                                          java.lang.String message)

        Constructs the FieldLimitReachedException with the specified field limit and description.

        Parameters:
        fieldLimit - The maximum number of fields that are allowed by the FieldManager.
        message - A description of the exception.
    • Method Detail

      • getFieldLimit

        public int getFieldLimit()

        Gets the maximum number of fields that are allowed by the FieldManager.

        Returns:
        The maximum number of fields that are allowed by the FieldManager.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Throwable