|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.6) E22562-03 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.apps.fnd.applcore.oaext.model.OAExceptionUtils
public final class OAExceptionUtils
Provides API covers over several Oracle Applications E-Business Suite error facilities.
PL/SQL error checking utilities
Provides APIs to extract errors from the PL/SQL layer as a bundled
Exception.
checkErrors(DBTransaction)
checkErrors(DBTransaction, int)
checkErrors(DBTransaction, int, String, String)
getMessageDetails(DBTransaction)
setMessage(String, DBTransaction)
getToken(String, String, String, DBTransaction)
decodeMessage(DBTransaction)
unencodeMessage(String,DBTransaction)
| Method Summary | |
|---|---|
static void |
checkErrors(oracle.jbo.server.DBTransaction pTx)
Raises a bundled JboException of all errors registered by
PL/SQL APIs from the FND_MESSAGE PL/SQL package. |
static void |
checkErrors(oracle.jbo.server.DBTransaction pTx,
int pMessageCount)
Raises a bundled JboException of a specified number of errors
registered by PL/SQL APIs from the FND_MESSAGE PL/SQL package. |
protected static void |
checkErrors(oracle.jbo.server.DBTransaction pTx,
int pMessageCount,
oracle.jbo.server.RowImpl row)
For internal OA Framework team development use only. No other use is supported. |
static void |
checkErrors(oracle.jbo.server.DBTransaction pTx,
int pMessageCount,
java.lang.String pReturnStatus,
java.lang.String pMessageData)
Deprecated. |
protected static void |
checkErrors(oracle.jbo.server.DBTransaction pTx,
int pMessageCount,
java.lang.String pReturnStatus,
java.lang.String pMessageData,
oracle.jbo.server.RowImpl row)
For internal OA Framework team development use only. No other use is supported. |
static void |
checkErrors(oracle.jbo.server.DBTransaction pTx,
oracle.jbo.server.RowImpl row)
Raises a bundled JboException if any errors are found registered
with the FND_MSG_PUB package. |
static java.lang.String |
decodeMessage(oracle.jbo.server.DBTransaction pTx)
Decodes and returns the message previously set on the FND_MESSAGE
buffer using setMessage(String, DBTransaction). |
static java.lang.String |
getMessageDetails(oracle.jbo.server.DBTransaction pTx)
Returns and decodes the first message registered by PL/SQL APIs from the FND_MESSAGE PL/SQL package. |
static java.lang.String |
getToken(java.lang.String pMessageData,
java.lang.String pToken,
java.lang.String pRemoveToken,
oracle.jbo.server.DBTransaction pTx)
Returns a token value from the PL/SQL message that was set on the stack using setMessage(String, DBTransaction). |
static void |
setMessage(java.lang.String pMessageData,
oracle.jbo.server.DBTransaction pTx)
Puts an encoded message on the FND_MESSAGE stack. |
static java.lang.String |
unencodeMessage(java.lang.String pMessageData,
oracle.jbo.server.DBTransaction pTx)
Decodes a PL/SQL message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void checkErrors(oracle.jbo.server.DBTransaction pTx)
JboException of all errors registered by
PL/SQL APIs from the FND_MESSAGE PL/SQL package.
It first gets the message count, then retrieves
the messages and constructs a bundled exception.
Relies on the FND_MSG_PUB.GET_DETAIL PL/SQL procedure
to get the error details.
pTx - current database transaction
public static void checkErrors(oracle.jbo.server.DBTransaction pTx,
oracle.jbo.server.RowImpl row)
JboException if any errors are found registered
with the FND_MSG_PUB package.
Relies on FND_MSG_PUB PL/SQL package to get the message count
and error details.
pTx - current database transactionrow - view object row that will be used to retrieve row and attribute
level information
public static void checkErrors(oracle.jbo.server.DBTransaction pTx,
int pMessageCount)
JboException of a specified number of errors
registered by PL/SQL APIs from the FND_MESSAGE PL/SQL package.
Relies on the FND_MSG_PUB.GET_DETAIL PL/SQL procedure
to get the error details.
pTx - current database transactionpMessageCount - number of errors found
protected static void checkErrors(oracle.jbo.server.DBTransaction pTx,
int pMessageCount,
oracle.jbo.server.RowImpl row)
public static void checkErrors(oracle.jbo.server.DBTransaction pTx,
int pMessageCount,
java.lang.String pReturnStatus,
java.lang.String pMessageData)
JboException of a specified number of errors
registered by PL/SQL APIs from the FND_MESSAGE PL/SQL package.
Relies on the FND_MSG_PUB.GET_DETAIL PL/SQL procedure
to get the error details. This API is deprecated. Do not use it.
An Oracle Application's PL/SQL API typically returns: return status,
message count, and encoded message data as follows:
PROCEDURE Create_OrderLine
(
p_api_version IN NUMBER,
p_init_msg_list IN VARCHAR2 := FND_API.G_FALSE,
p_commit IN VARCHAR2 := FND_API.G_FALSE,
p_validation_level IN NUMBER := FND_API.G_VALID_LEVEL_FULL,
x_return_status OUT VARCHAR2,
x_msg_count OUT NUMBER,
x_msg_data OUT VARCHAR2,
p_line_rec IN Line_Rec_Type
)
pTx - current database transactionpMessageCount - number of errors foundpReturnStatus - return status of the PL/SQL API. Possible values
are:
pMessageData - actual message in an encoded format as returned by
the PL/SQL API callcheckErrors(DBTransaction),
checkErrors(DBTransaction, RowImpl)
protected static void checkErrors(oracle.jbo.server.DBTransaction pTx,
int pMessageCount,
java.lang.String pReturnStatus,
java.lang.String pMessageData,
oracle.jbo.server.RowImpl row)
public static java.lang.String getMessageDetails(oracle.jbo.server.DBTransaction pTx)
FND_MESSAGE PL/SQL package. Relies on the
FND_MSG_PUB.GET_DETAIL PL/SQL procedure to get the error
details.
pTx - current database transaction
public static java.lang.String decodeMessage(oracle.jbo.server.DBTransaction pTx)
FND_MESSAGE
buffer using setMessage(String, DBTransaction).
setMessage(String, DBTransaction) must be called to set the
message on the message stack before calling this method.
pTx - current database transaction
setMessage(String, DBTransaction),
unencodeMessage(String,DBTransaction)
public static void setMessage(java.lang.String pMessageData,
oracle.jbo.server.DBTransaction pTx)
FND_MESSAGE stack.
pMessageData - actual message in an encoded format as returned by
the PL/SQL API callpTx - current database transactiondecodeMessage(DBTransaction),
unencodeMessage(String,DBTransaction)
public static java.lang.String getToken(java.lang.String pMessageData,
java.lang.String pToken,
java.lang.String pRemoveToken,
oracle.jbo.server.DBTransaction pTx)
setMessage(String, DBTransaction).
setMessage(String, DBTransaction) must be called to set the
message on the message stack before calling this method.
pMessageData - actual message in an encoded format as returned by
the PL/SQL API callpToken - token namepRemoveToken - indicate whether to remove the token from the message.
Valid values are:
pTx - current database transaction
setMessage(String,DBTransaction)
public static java.lang.String unencodeMessage(java.lang.String pMessageData,
oracle.jbo.server.DBTransaction pTx)
Has the same effect as calling setMessage(String, DBTransaction)
then decodeMessage(DBTransaction).
pMessageData - message to be unencoded.pTx - current database transaction
setMessage(String, DBTransaction),
decodeMessage(DBTransaction)
|
Oracle Fusion Middleware extensions for Applications Core API Reference 11g Release 1 (11.1.1.6) E22562-03 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||