org.apache.wsrp4j.exception
Class Messages

java.lang.Object
  extended byorg.apache.wsrp4j.exception.Messages

public class Messages
extends java.lang.Object

Holds all exception messages

Version:
$Id: Messages.java,v 1.5 2005/08/10 14:51:45 cziegeler Exp $

Field Summary
static int COMMON_LOWER_BOUND
          defines the lowest message code for common messages
static int COMMON_UPPER_BOUND
          defines the highest message code for common messages
static int CONSUMER_LOWER_BOUND
          defines the lowest message code for consumer messages
static int CONSUMER_UPPER_BOUND
          defines the highest message code for consumer messages
private static java.lang.String FILE_MSG_PROPERTIES
           
private static Logger logger
           
private static java.lang.String METHOD_GET
           
private static java.lang.String METHOD_INIT
           
private static java.lang.String MSG_EXCEPTION_ON_LOAD
           
private static java.lang.String MSG_NO_MSG_FOUND
           
private static java.lang.String MSG_NO_MSG_FOUND_FOR
           
private static java.util.Properties msgMap
           
static int PRODUCER_LOWER_BOUND
          defines the lowest message code for producer messages
static int PRODUCER_UPPER_BOUND
          defines the highest message code for producer messages
static int PROVIDER_LOWER_BOUND
          defines the lowest message code for provider messages
static int PROVIDER_UPPER_BOUND
          defines the highest message code for provider messages
 
Constructor Summary
Messages()
           
 
Method Summary
static java.lang.String get(int msgCode)
          Returns an error message for a message code
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMMON_LOWER_BOUND

public static final int COMMON_LOWER_BOUND
defines the lowest message code for common messages

See Also:
Constant Field Values

COMMON_UPPER_BOUND

public static final int COMMON_UPPER_BOUND
defines the highest message code for common messages

See Also:
Constant Field Values

PRODUCER_LOWER_BOUND

public static final int PRODUCER_LOWER_BOUND
defines the lowest message code for producer messages

See Also:
Constant Field Values

PRODUCER_UPPER_BOUND

public static final int PRODUCER_UPPER_BOUND
defines the highest message code for producer messages

See Also:
Constant Field Values

PROVIDER_LOWER_BOUND

public static final int PROVIDER_LOWER_BOUND
defines the lowest message code for provider messages

See Also:
Constant Field Values

PROVIDER_UPPER_BOUND

public static final int PROVIDER_UPPER_BOUND
defines the highest message code for provider messages

See Also:
Constant Field Values

CONSUMER_LOWER_BOUND

public static final int CONSUMER_LOWER_BOUND
defines the lowest message code for consumer messages

See Also:
Constant Field Values

CONSUMER_UPPER_BOUND

public static final int CONSUMER_UPPER_BOUND
defines the highest message code for consumer messages

See Also:
Constant Field Values

FILE_MSG_PROPERTIES

private static final java.lang.String FILE_MSG_PROPERTIES
See Also:
Constant Field Values

MSG_EXCEPTION_ON_LOAD

private static final java.lang.String MSG_EXCEPTION_ON_LOAD
See Also:
Constant Field Values

MSG_NO_MSG_FOUND

private static final java.lang.String MSG_NO_MSG_FOUND
See Also:
Constant Field Values

MSG_NO_MSG_FOUND_FOR

private static final java.lang.String MSG_NO_MSG_FOUND_FOR
See Also:
Constant Field Values

METHOD_INIT

private static final java.lang.String METHOD_INIT
See Also:
Constant Field Values

METHOD_GET

private static final java.lang.String METHOD_GET
See Also:
Constant Field Values

logger

private static Logger logger

msgMap

private static java.util.Properties msgMap
Constructor Detail

Messages

public Messages()
Method Detail

get

public static java.lang.String get(int msgCode)
Returns an error message for a message code

Parameters:
msgCode - code that identifies a message
Returns:
String representing a message


--