com.sas.services.information
Class PartialResultsException

com.sas.services.information.PartialResultsException
All Implemented Interfaces:
com.sas.util.ChainedExceptionInterface, java.io.Serializable
Direct Known Subclasses:
PartialFolderResultsException, PartialListResultsException

public abstract class PartialResultsException

This Exception gets thrown if multiple objects were expected in a result set, and one or more exceptions were thrown during metadata retrieval. This class provides access to the results set as well as an array of Exceptions that occurred during retrieval. The payload may be empty, but it shouldn't be null.

See Also:
Serialized Form

Field Summary
protected  java.lang.Object _payload
           
 
Constructor Summary
PartialResultsException()
           
PartialResultsException(java.lang.Object results, java.lang.String message)
           
PartialResultsException(java.lang.String message)
           
 
Method Summary
 void addException(java.lang.Throwable t)
           
 java.lang.Throwable[] getExceptions()
           
 java.lang.String getMessage()
           
 

Field Detail

_payload

protected java.lang.Object _payload
Constructor Detail

PartialResultsException

public PartialResultsException()

PartialResultsException

public PartialResultsException(java.lang.String message)
Parameters:
message -

PartialResultsException

public PartialResultsException(java.lang.Object results,
                               java.lang.String message)
Parameters:
results - A set of results for the operation. This set may be only part of the desired results.
message - A message that indicates at least one reason why the operation didn't succeed.
Method Detail

getExceptions

public java.lang.Throwable[] getExceptions()

addException

public void addException(java.lang.Throwable t)

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable



Copyright © 2009 SAS Institute Inc. All Rights Reserved.