|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.netweaver.bc.uwl.ErrorMessages
The ErrorMessages class contains error codes and
error categories. Most of these are used for logging purposes by the UWL
service. The texts are in English and are not internationalized.
| Nested Class Summary | |
static class |
ErrorMessages.Codes
The Codes class defines a bunch of error codes.
|
| Field Summary | |
static int |
CAT_ADMIN
Every exception must have an error category and error code. |
static int |
CAT_CACHE
Every exception must have an error category and error code. |
static int |
CAT_CONFIGURATION
Every exception must have an error category and error code. |
static int |
CAT_CONNECTOR
Every exception must have an error category and error code. |
static int |
CAT_DATABASE
Every exception must have an error category and error code. |
static int |
CAT_DEFAULT
Every exception must have an error category and error code. |
static int |
CAT_ITEM
Every exception must have an error category and error code. |
static int |
CAT_KM
Every exception must have an error category and error code. |
static int |
CAT_PORTAL
Every exception must have an error category and error code. |
static int |
CAT_SUBSTITUTION
Every exception must have an error category and error code. |
static int |
CAT_UM
Every exception must have an error category and error code. |
| Method Summary | |
static ErrorMessages |
getInstance()
This is a factory method provided in order to preserve the property of being a singleton. |
String |
getMessage(int category,
int code)
This returns the message which is a blend of category and code. |
String |
getMessage(int code,
Object[] args)
Retrieve message from message code. |
String |
getMessage(int code,
String arg1)
Retrieve message from message code. |
int |
getNumCodes()
|
static String |
staticGetMessage(int code,
String arg1)
Retrieve message from message code. |
static String |
staticGetMessageArgs(int code,
Object[] args)
Retrieve message from message code. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int CAT_DEFAULT
public static final int CAT_DATABASE
public static final int CAT_CACHE
public static final int CAT_CONFIGURATION
public static final int CAT_CONNECTOR
public static final int CAT_ITEM
Item.
public static final int CAT_UM
public static final int CAT_KM
public static final int CAT_ADMIN
public static final int CAT_PORTAL
public static final int CAT_SUBSTITUTION
| Method Detail |
public static ErrorMessages getInstance()
public String getMessage(int category,
int code)
category - one of the categories like database, configuration, connector, etc.code - one of the codes like " Item not found in the cache ", " Invalid content type for attachment", ETC.
public String getMessage(int code,
Object[] args)
code - Error message codeargs - argument values for placeholder
public String getMessage(int code,
String arg1)
code - Error message codearg1 - argument for placeholder
public static String staticGetMessage(int code,
String arg1)
code - Error message codearg1 - argument for placeholder
public static String staticGetMessageArgs(int code,
Object[] args)
code - Error message codeargs - argument values for placeholder
public int getNumCodes()
|
SAP NetWeaver 2004S SPS 10 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||