org.duracloud.client.error
Class InvalidServiceConfigurationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.duracloud.common.error.DuraCloudCheckedException
              extended by org.duracloud.client.error.ServicesException
                  extended by org.duracloud.client.error.InvalidServiceConfigurationException
All Implemented Interfaces:
java.io.Serializable, MessageFormattable

public class InvalidServiceConfigurationException
extends ServicesException

On validation failure, this class propagates user friendly validation messages that can be associated with a particular property. In most cases, the "property" should be the "name" of the offending UserConfig or ServiceConfig object. If the validation error is general - ie not associated with a single property, you may construct a ValidationError with only the error text. In this case, the error will be displayed to the user at the top of the page.

Version:
$Id: InvalidServiceConfigurationException.java 2 2010-06-24 20:01:55Z bbranan $
Author:
Danny Bernstein
See Also:
Serialized Form

Nested Class Summary
static class InvalidServiceConfigurationException.ValidationError
           
 
Constructor Summary
InvalidServiceConfigurationException(java.util.List<InvalidServiceConfigurationException.ValidationError> errors)
           
 
Method Summary
 java.util.List<InvalidServiceConfigurationException.ValidationError> getErrors()
           
 
Methods inherited from class org.duracloud.common.error.DuraCloudCheckedException
getArgs, getFormattedMessage, getKey, setArgs
 
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
 

Constructor Detail

InvalidServiceConfigurationException

public InvalidServiceConfigurationException(java.util.List<InvalidServiceConfigurationException.ValidationError> errors)
Method Detail

getErrors

public java.util.List<InvalidServiceConfigurationException.ValidationError> getErrors()


Copyright © 2009-2011 DuraSpace. All Rights Reserved.