2.17.2: 2011-06-17

net.sf.basedb.core
Class StringTooLongException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.sf.basedb.core.BaseException
                  extended by net.sf.basedb.core.InvalidDataException
                      extended by net.sf.basedb.core.StringTooLongException
All Implemented Interfaces:
Serializable

public class StringTooLongException
extends InvalidDataException

This exception is thrown when an item's field or a parameter which must be shorter than a specified length exceeds that length.

Version:
2.0
Author:
Nicklas
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Constructor Summary
StringTooLongException()
          Create a new StringTooLongException object.
StringTooLongException(String field, String theString, int maxLength)
          Create a new StringTooLongException object.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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
See Also:
Constant Field Values
Constructor Detail

StringTooLongException

public StringTooLongException()
Create a new StringTooLongException object.


StringTooLongException

public StringTooLongException(String field,
                              String theString,
                              int maxLength)
Create a new StringTooLongException object.

Parameters:
field - The name of the field or parameter that must have a shorter value
theString - The string that is too long
maxLength - The maximum allowed length of the string

2.17.2: 2011-06-17