Class FieldLimitReachedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.caplin.datasrc.fields.FieldLimitReachedException
All Implemented Interfaces:
Serializable

public class FieldLimitReachedException extends 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:
  • Constructor Details

    • 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, 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 Details

    • 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 String toString()
      Overrides:
      toString in class Throwable