com.sage.accpac.sm
Class A4wapiGenericError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Error
          extended by com.sage.accpac.sm.A4wapiGenericError
All Implemented Interfaces:
java.io.Serializable

@NotThreadSafe
public class A4wapiGenericError
extends java.lang.Error

Error thrown by the underlying system

See Also:
Serialized Form
Thread safety
Not thread-safe

Constructor Summary
A4wapiGenericError(java.lang.String domain, int value, java.lang.String context)
          creates an instance of the A4wapiGenericError error with the given arguments.
 
Method Summary
 java.lang.String getDomain()
          returns the domain of the exception (the area of Accpac where the exception occurred)
 java.lang.String getMessage()
           
 int getValue()
          returns any integer associated value
 
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
 

Constructor Detail

A4wapiGenericError

public A4wapiGenericError(java.lang.String domain,
                          int value,
                          java.lang.String context)
creates an instance of the A4wapiGenericError error with the given arguments.

Parameters:
domain - the domain of the exception, the region within Accpac where it happened. This gives context to the value. For example is the domain th "User" area, in which case the value will be an ecodes value
value - any integer value associated with the error
context - the context in which this happened, typically the function being called
Method Detail

getDomain

public java.lang.String getDomain()
returns the domain of the exception (the area of Accpac where the exception occurred)

Returns:
the domain

getValue

public int getValue()
returns any integer associated value

Returns:
any integer associated value

getMessage

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


Copyright © 2011 Sage Software, Inc. All rights reserved.