org.openanzo.common.exceptions
Class Messages

java.lang.Object
  extended by org.openanzo.common.exceptions.Messages

public class Messages
extends java.lang.Object

Message bundle for AnzoException messages.

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Method Summary
static java.lang.String getString(int major, int minor)
          Based on given major and minor error codes, get the text of the error message from the resource bundle
static java.lang.String getString(java.lang.String exceptionName)
          Based on given exceptionName, get the text of the error message from the resource bundle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getString

public static java.lang.String getString(int major,
                                         int minor)
Based on given major and minor error codes, get the text of the error message from the resource bundle

Parameters:
major - Error's major code
minor - Error's minor code
Returns:
Text of error message

getString

public static java.lang.String getString(java.lang.String exceptionName)
Based on given exceptionName, get the text of the error message from the resource bundle

Parameters:
exceptionName - Name of exception to find error message
Returns:
Text of error message


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.