Esri Geoportal Server
1.0

com.esri.gpt.catalog.schema
Class ValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.esri.gpt.framework.context.ApplicationException
              extended by com.esri.gpt.catalog.schema.SchemaException
                  extended by com.esri.gpt.catalog.schema.ValidationException
All Implemented Interfaces:
Serializable

public class ValidationException
extends SchemaException

An exception encountered while validating a schema.

See Also:
Serialized Form

Constructor Summary
ValidationException(String key, String msg, ValidationErrors errors)
          Construct based upon an error message.
 
Method Summary
 String getKey()
          Gets schema key.
 ValidationErrors getValidationErrors()
          Gets the validation errors.
 void setKey(String key)
          Sets schema key.
protected  void setValidationErrors(ValidationErrors errors)
          Sets the validation errors.
 
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

ValidationException

public ValidationException(String key,
                           String msg,
                           ValidationErrors errors)
Construct based upon an error message.

Parameters:
key - schema key
msg - the error message
errors -
Method Detail

getKey

public String getKey()
Gets schema key.

Returns:
schema key

setKey

public void setKey(String key)
Sets schema key.

Parameters:
key - schema key

getValidationErrors

public ValidationErrors getValidationErrors()
Gets the validation errors.

Returns:
the validation errors

setValidationErrors

protected void setValidationErrors(ValidationErrors errors)
Sets the validation errors.

Parameters:
errors - the validation errors

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.