de.bea.domingo
Class DNotesError

java.lang.Object
  extended by de.bea.domingo.DNotesError

public final class DNotesError
extends java.lang.Object

Enumeration of notes errors.

Author:
Kurt Riede
See Also:
DNotesException

Field Summary
static DNotesError DATABASE_NO_ACCESS
          error: no access to database.
static DNotesError DATABASE_NOT_FOUND
          error: database not found.
static DNotesError GENERAL_ERROR
          error: general error.
 
Constructor Summary
DNotesError(int theId)
          Private Constructor.
 
Method Summary
 boolean equals(java.lang.Object object)
           
static java.lang.String getMessage(DNotesError e)
          Returns a message for a given error.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

GENERAL_ERROR

public static final DNotesError GENERAL_ERROR
error: general error.


DATABASE_NOT_FOUND

public static final DNotesError DATABASE_NOT_FOUND
error: database not found.


DATABASE_NO_ACCESS

public static final DNotesError DATABASE_NO_ACCESS
error: no access to database.

Constructor Detail

DNotesError

public DNotesError(int theId)
Private Constructor.

Parameters:
theId - the error code
Method Detail

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object
Parameters:
object - the reference object with which to compare.
Returns:
true if this object is the same as the object argument; false otherwise.
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
Returns:
the id of the error
See Also:
Object.hashCode()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
the id of the error
See Also:
Object.toString()

getMessage

public static java.lang.String getMessage(DNotesError e)
Returns a message for a given error.

Parameters:
e - an error
Returns:
a message for the error


Domingo Java-API