Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

oracle.apps.fnd.applcore.importExport.model.content.common
Class ErrorMessageHelper

java.lang.Object
  extended by oracle.apps.fnd.applcore.importExport.model.content.common.ErrorMessageHelper

public class ErrorMessageHelper
extends java.lang.Object

Constants containing the error message text. Initially developed to consolidate the errors reported at the model layer.


Field Summary
static java.lang.String ERROR_CODE
          Generic error code used for Applcore Exceptions.
static java.lang.String GET_JCR_SESSION_ERROR
           
static java.lang.String IDCCLIENT_ERROR
           
static java.lang.String IO_READ_RESET_ERROR
           
static java.lang.String NO_PRIMARY_CONNECTION_ERROR
           
static java.lang.String UNEXPECTED_FIELD_CODE_ERROR
           
 
Constructor Summary
ErrorMessageHelper()
           
 
Method Summary
static java.lang.String getBadDataErrorMessage(java.lang.String prefix, java.lang.String comments)
          Return the localized error message when unexpected data is found in the comments field of a document in Content Repository.
static oracle.jbo.JboException throwCodeException(java.lang.String message)
          Throw a non-formattable, non-localizable JboException in cases where the error can only occur due to incorrect code or in tests.
static void throwCodeException(java.lang.String message, java.lang.Object[] messageArguments)
          Throw a formattable but non-localizable JboException in cases where the error can only occur due to incorrect code or in tests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_CODE

public static final java.lang.String ERROR_CODE
Generic error code used for Applcore Exceptions.

See Also:
Constant Field Values

UNEXPECTED_FIELD_CODE_ERROR

public static final java.lang.String UNEXPECTED_FIELD_CODE_ERROR
See Also:
Constant Field Values

NO_PRIMARY_CONNECTION_ERROR

public static final java.lang.String NO_PRIMARY_CONNECTION_ERROR
See Also:
Constant Field Values

IDCCLIENT_ERROR

public static final java.lang.String IDCCLIENT_ERROR
See Also:
Constant Field Values

GET_JCR_SESSION_ERROR

public static final java.lang.String GET_JCR_SESSION_ERROR
See Also:
Constant Field Values

IO_READ_RESET_ERROR

public static final java.lang.String IO_READ_RESET_ERROR
See Also:
Constant Field Values
Constructor Detail

ErrorMessageHelper

public ErrorMessageHelper()
Method Detail

throwCodeException

public static oracle.jbo.JboException throwCodeException(java.lang.String message)
Throw a non-formattable, non-localizable JboException in cases where the error can only occur due to incorrect code or in tests. This is a development aid. The UI should display the message in an error popup.

Parameters:
message - Non-translated error description. Values can be passed in using numbered braces. eg. {0} will be replaced by messageArguments[0], etc.

throwCodeException

public static void throwCodeException(java.lang.String message,
                                      java.lang.Object[] messageArguments)
Throw a formattable but non-localizable JboException in cases where the error can only occur due to incorrect code or in tests. This is a development aid. The UI should display the message in an error popup.

Parameters:
message - Non-translated error description. Values can be passed in using numbered braces. eg. {0} will be replaced by messageArguments[0], etc.
messageArguments - dynamic data to be passed in when the exception is created. eg. messageArgumates[1] will replace {1} in the message

getBadDataErrorMessage

public static java.lang.String getBadDataErrorMessage(java.lang.String prefix,
                                                      java.lang.String comments)
Return the localized error message when unexpected data is found in the comments field of a document in Content Repository. Variable values are replaced with the parameters passed in.

Parameters:
prefix - the expected value for the prefix
comments - the value found in the comments field
Returns:
localized error message including substituted parameters

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.