org.riotfamily.forms.factory
Class FormRepositoryException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.springframework.core.NestedRuntimeException
                  extended by org.riotfamily.forms.factory.FormDefinitionException
                      extended by org.riotfamily.forms.factory.FormRepositoryException
All Implemented Interfaces:
Serializable

public class FormRepositoryException
extends FormDefinitionException

Exception thrown when a FormRepository encounters an internal error, and its definitions are invalid: for example, if an XML document containing form definitions isn't well-formed.

See Also:
Serialized Form

Constructor Summary
FormRepositoryException(Resource documentLocation, String formId, String msg)
          Create a new FormRepositoryException.
FormRepositoryException(Resource documentLocation, String formId, String msg, Throwable ex)
          Create a new FormRepositoryException.
FormRepositoryException(String msg)
           
FormRepositoryException(String resourceDescription, String formId, String msg)
          Create a new FormRepositoryException.
FormRepositoryException(String resourceDescription, String formId, String msg, Throwable ex)
          Create a new FormRepositoryException.
FormRepositoryException(String msg, Throwable ex)
           
 
Method Summary
 String getFormId()
          Return the id of the form requested, if any.
 String getResourceDescription()
          Return the description of the resource that the form definition came from, if any.
 
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormRepositoryException

public FormRepositoryException(String msg)

FormRepositoryException

public FormRepositoryException(String msg,
                               Throwable ex)

FormRepositoryException

public FormRepositoryException(Resource documentLocation,
                               String formId,
                               String msg)
Create a new FormRepositoryException.

Parameters:
documentLocation - descriptor of the resource location that the form definition came from
formId - the id of the form requested
msg - the detail message

FormRepositoryException

public FormRepositoryException(Resource documentLocation,
                               String formId,
                               String msg,
                               Throwable ex)
Create a new FormRepositoryException.

Parameters:
documentLocation - descriptor of the resource location that the form definition came from
formId - the id of the form requested
msg - the detail message
ex - the root cause

FormRepositoryException

public FormRepositoryException(String resourceDescription,
                               String formId,
                               String msg)
Create a new FormRepositoryException.

Parameters:
resourceDescription - description of the resource that the form definition came from
formId - the id of the form requested
msg - the detail message

FormRepositoryException

public FormRepositoryException(String resourceDescription,
                               String formId,
                               String msg,
                               Throwable ex)
Create a new FormRepositoryException.

Parameters:
resourceDescription - description of the resource that the form definition came from
formId - the id of the form requested
msg - the detail message
ex - the root cause
Method Detail

getResourceDescription

public String getResourceDescription()
Return the description of the resource that the form definition came from, if any.


getFormId

public String getFormId()
Return the id of the form requested, if any.