public class DocumentsPushAPIException extends PushAPIException
Modifier and Type | Class and Description |
---|---|
static class |
DocumentsPushAPIException.Entry
Simple implementation of a Map.Entry
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector<DocumentsPushAPIException.Entry> |
errors |
protected boolean |
serverSideError |
Constructor and Description |
---|
DocumentsPushAPIException(java.lang.String message)
Constructor specifying the exception message.
|
DocumentsPushAPIException(java.lang.String message,
java.lang.Throwable cause)
Constructor specifying the exception message and the exception cause.
|
DocumentsPushAPIException(java.lang.Throwable cause)
Constructor specifying the exception cause.
|
Modifier and Type | Method and Description |
---|---|
void |
add(Document doc,
java.lang.Exception exception)
Add a new server-side error
|
void |
add(Document doc,
java.lang.Exception exception,
boolean serverSideError)
Add a new error
|
void |
add(java.lang.String uri,
java.lang.Exception exception,
boolean serverSideError)
Add a new error
|
java.util.Enumeration<DocumentsPushAPIException.Entry> |
elements()
Enumerate errors.
|
DocumentsPushAPIException.Entry |
get(int i)
Get the Nth error.
|
java.lang.String |
getMessage() |
java.lang.StackTraceElement[] |
getStackTrace() |
boolean |
isServerSideError()
Return true if the errors list contains one or more server-side error.
|
int |
size()
Return the number of errors
|
protected java.util.Vector<DocumentsPushAPIException.Entry> errors
protected boolean serverSideError
public DocumentsPushAPIException(java.lang.String message)
message
- The exception message.public DocumentsPushAPIException(java.lang.Throwable cause)
cause
- The exception cause.public DocumentsPushAPIException(java.lang.String message, java.lang.Throwable cause)
message
- The exception message.e
- The exception cause.public void add(Document doc, java.lang.Exception exception, boolean serverSideError)
doc
- The document which caused the errorexception
- The thrown exceptionserverSideError
- If true, this was a server-side (fatal) errorpublic void add(Document doc, java.lang.Exception exception)
doc
- The document which caused the errorexception
- The thrown exceptionpublic void add(java.lang.String uri, java.lang.Exception exception, boolean serverSideError)
uri
- The URI which caused the errorexception
- The thrown exceptionserverSideError
- If true, this was a server-side (fatal) errorpublic int size()
public DocumentsPushAPIException.Entry get(int i)
public java.util.Enumeration<DocumentsPushAPIException.Entry> elements()
public boolean isServerSideError()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.StackTraceElement[] getStackTrace()
getStackTrace
in class java.lang.Throwable
Copyright © 2021 Dassault Systèmes, All Rights Reserved.