org.openanzo.common.exceptions
Class UpdateServerException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.openanzo.common.exceptions.AnzoException
              extended by org.openanzo.common.exceptions.UpdateServerException
All Implemented Interfaces:
java.io.Serializable

public class UpdateServerException
extends AnzoException

Anzo exception class for the Update Server major error codes.

Author:
Matthew Roy ( mroy@cambridgesemantics.com )
See Also:
Serialized Form

Constructor Summary
UpdateServerException(ITransaction[] transations, java.util.List<AnzoException>[] errors)
          Create new UpdateServerException with given transactions and errors
 
Method Summary
 java.util.List<AnzoException>[] getErrors()
          Get the set of errors that occurred executing the set of transactions on the server
 java.lang.String getMessage()
          Return the error message for this exception.
 ITransaction[] getTransactions()
          Get the set of transactions that were being executed on the server
 
Methods inherited from class org.openanzo.common.exceptions.AnzoException
createException, createException, createException, getArgs, getErrorCode, getErrorSubCode
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UpdateServerException

public UpdateServerException(ITransaction[] transations,
                             java.util.List<AnzoException>[] errors)
Create new UpdateServerException with given transactions and errors

Parameters:
transations - Array of transactions that were being executed on the server
errors - Array of errors that occurred for the corresponding transactions
Method Detail

getErrors

public java.util.List<AnzoException>[] getErrors()
Get the set of errors that occurred executing the set of transactions on the server

Returns:
array of errors

getTransactions

public ITransaction[] getTransactions()
Get the set of transactions that were being executed on the server

Returns:
array of executed transactions

getMessage

public java.lang.String getMessage()
Description copied from class: AnzoException
Return the error message for this exception.

Overrides:
getMessage in class AnzoException
Returns:
error message for this exception


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.