com.gridsystems.exceptions
Class StringTooLongException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.rmi.RemoteException
                  extended by org.apache.axis.AxisFault
                      extended by com.gridsystems.innergrid.kernel.KernelException
                          extended by com.gridsystems.innergrid.kernel.IKernelException
                              extended by com.gridsystems.exceptions.IllegalValueException
                                  extended by com.gridsystems.exceptions.StringTooLongException
All Implemented Interfaces:
com.gridsystems.innergrid.kernel.Kernelizable, java.io.Serializable

public class StringTooLongException
extends IllegalValueException

Indicates a string that is longer than a stablished limit.

Version:
1.0
Author:
Rodrigo Ruiz Aguayo
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.gridsystems.innergrid.kernel.IKernelException
locale
 
Fields inherited from class com.gridsystems.innergrid.kernel.KernelException
msg, params, pattern
 
Fields inherited from class org.apache.axis.AxisFault
faultActor, faultCode, faultDetails, faultHeaders, faultNode, faultString, faultSubCode, log
 
Fields inherited from class java.rmi.RemoteException
detail
 
Constructor Summary
StringTooLongException(java.lang.String name, int limit)
          Constructor.
 
Method Summary
 int getLimit()
          Gets the maximum allowed length of the String.
 
Methods inherited from class com.gridsystems.exceptions.IllegalValueException
getName
 
Methods inherited from class com.gridsystems.innergrid.kernel.IKernelException
getMessage, getPattern, getPattern
 
Methods inherited from class com.gridsystems.innergrid.kernel.KernelException
fromRemoteException, getCode, getNamespace, getParams, hasCode, output, prepare, printStackTrace, printStackTrace, toKernelException, toString
 
Methods inherited from class org.apache.axis.AxisFault
addFaultDetail, addFaultDetail, addFaultDetailString, addFaultSubCode, addFaultSubCodeAsString, addHeader, addHostname, addHostnameIfNeeded, clearFaultDetails, clearFaultSubCodes, clearHeaders, dump, dumpToString, getFaultActor, getFaultCode, getFaultDetails, getFaultNode, getFaultReason, getFaultRole, getFaultString, getFaultSubCodes, getHeaders, initFaultSubCodes, lookupFaultDetail, makeFault, removeFaultDetail, removeHostname, setFaultActor, setFaultCode, setFaultCode, setFaultCodeAsString, setFaultDetail, setFaultDetailString, setFaultNode, setFaultReason, setFaultRole, setFaultString, writeDetails
 
Methods inherited from class java.rmi.RemoteException
getCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringTooLongException

public StringTooLongException(java.lang.String name,
                              int limit)
Constructor.

Parameters:
name - a String with the name of the value that is too long.
limit - an int with the maximum allowed length.
Method Detail

getLimit

public int getLimit()
Gets the maximum allowed length of the String.

Returns:
an int with the maximum allowed length of the String.


Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.