|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sage.accpac.sm.ViewException
@NotThreadSafe public class ViewException
The exception that is thrown when a call to any methods of the View (or ViewFields,...) fails.
Field Summary | |
---|---|
static int |
ApplicationDefinedBase
This is the lowest value for an application-defined error; consult the application's documentation for values between this and ApplicationDefinedEnd . |
static int |
ApplicationDefinedEnd
This is the highest value for an application-defined error; consult the application's documentation for values between this and ApplicationDefinedBase . |
static int |
ComposeFailed
A view failed to perform composition. |
static int |
DatabaseDictionary
The database dictionary is inconsistent. |
static int |
DatabaseLimit
The database resources were exceeded. |
static int |
DatabaseOther
There was an unspecified database error. |
static int |
DatabaseParameter
There was an invalid database link, table handle or other parameters when calling database apis. |
static int |
FieldDisabled
The call attempted to access a disabled field. |
static int |
FieldID
The supplied field ID is not a valid field ID in the view. |
static int |
FieldInvalid
Field validation failed. |
static int |
FieldNumber
The supplied field number is not a valid field number in the view. |
static int |
FieldReadonly
The field is read-only. |
static int |
FilterOther
An unspecified error occurred when parsing the filter string. |
static int |
FilterSyntax
The filter string contains invalid syntax. |
static int |
General
A general error occurred. |
static int |
KeyChanged
There was an attempt to change alternate key field values but the data dictionary does not permit them to be modified. |
static int |
KeyInvalid
Validation of the record key failed. |
static int |
KeyNumber
The supplied key number is invalid. |
static int |
LoadFailed
A view failed to load. |
static int |
MemoryBufferLimit
The supplied memory buffer does not meet the required size of the requested operation. |
static int |
MemoryNoMore
The process is out of memory. |
static int |
NonViewError
The call failed but it was not caused by a view error. |
static int |
OpenFailed
A view failed to open. |
static int |
OperationCancelled
A View operation was cancelled either by the user or the caller. |
static int |
PermissionNone
Permission was denied. |
static int |
RecordConflict
The record has been modified by another user. |
static int |
RecordDuplicate
A record with the same key values already exists. |
static int |
RecordExists
The record already exists. |
static int |
RecordInvalid
The record contains some invalid values. |
static int |
RecordLocked
The record has been locked by another process. |
static int |
RecordNoMoreData
No more records can be fetched. |
static int |
RecordNotFound
The record specified does not exist in the view. |
static int |
RecordNotLocked
The record is not locked and the requested task requires that the record be locked. |
static int |
RevisionProtocol
There was an invalid state or call to revision APIs. |
static int |
RotoEntryFailed
The caller has requested an operation that is not implemented by this view. |
static int |
RPCFailed
A remote procedure call failed |
static int |
Success
The view call succeeded. |
static int |
TableExists
The specified table already exists. |
static int |
TableNotFound
The specified table could not be found. |
static int |
TransactionNone
A transaction is required to perform the operation. |
static int |
TransactionOpen
A transaction is open and the requested operation requires that no transactions be open. |
static int |
Warning
The view call succeeded with a warning; consult the Program's Errors collection. |
static int |
WarningApplicationDefinedBase
This is the lowest value for an application-defined warning; consult the application's documentation for values between this and WarningApplicationDefinedEnd . |
static int |
WarningApplicationDefinedEnd
This is the highest value for an application-defined warning; consult the application's documentation for values between this and WarningApplicationDefinedEnd . |
static int |
WarningGeneral
The view call succeeded with a warning; consult the Program's Errors collection. |
Constructor Summary | |
---|---|
ViewException()
constructs an instance of ViewException with a return code of
success |
|
ViewException(int viewReturnCode)
constructs an instance of the ViewException class with the
specified return code |
|
ViewException(int viewReturnCode,
java.lang.String message)
constructs an instance of the ViewException class with the
specified return code and message |
Method Summary | |
---|---|
java.lang.String |
getMessage()
This implementation currently returns null. |
int |
getReason()
returns the error code that caused the exception to be thrown. |
static boolean |
isError(int value)
Does the specified value denote a view error? Note that warnings do not count as errors; if the value does not denote an error it may denote a warning. |
static boolean |
isWarning(int value)
Does the specified value denote a view warning? |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int Success
public static final int WarningGeneral
public static final int Warning
public static final int WarningApplicationDefinedBase
WarningApplicationDefinedEnd
.
public static final int WarningApplicationDefinedEnd
WarningApplicationDefinedEnd
.
public static final int ApplicationDefinedBase
ApplicationDefinedEnd
.
public static final int ApplicationDefinedEnd
ApplicationDefinedBase
.
public static final int LoadFailed
public static final int OpenFailed
public static final int ComposeFailed
public static final int RotoEntryFailed
public static final int General
public static final int RecordNotFound
public static final int RecordNoMoreData
public static final int RecordExists
public static final int RecordDuplicate
public static final int RecordInvalid
public static final int RecordLocked
public static final int RecordConflict
public static final int RecordNotLocked
public static final int TableExists
public static final int TableNotFound
public static final int PermissionNone
public static final int MemoryNoMore
public static final int MemoryBufferLimit
public static final int FilterSyntax
public static final int FilterOther
public static final int KeyInvalid
public static final int KeyNumber
public static final int KeyChanged
public static final int FieldInvalid
public static final int FieldNumber
public static final int FieldID
public static final int FieldDisabled
public static final int FieldReadonly
public static final int TransactionNone
public static final int TransactionOpen
public static final int RevisionProtocol
public static final int DatabaseParameter
public static final int DatabaseLimit
public static final int DatabaseOther
public static final int DatabaseDictionary
public static final int RPCFailed
public static final int OperationCancelled
public static final int NonViewError
Constructor Detail |
---|
public ViewException()
ViewException
with a return code of
success
public ViewException(int viewReturnCode)
ViewException
class with the
specified return code
viewReturnCode
- the return code, as will be returned by getReason()
public ViewException(int viewReturnCode, java.lang.String message)
ViewException
class with the
specified return code and message
viewReturnCode
- the return code, as will be returned by getReason()
message
- the message is currently being ignored. This is being reviewed
and the intention is that it will be passed to the superclassMethod Detail |
---|
public int getReason()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public static boolean isWarning(int value)
value
- the value to check
true
if the value denotes a warning, false
if it
represents an error or successpublic static boolean isError(int value)
value
- the value to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |