org.osconsulting.jerr
Class JErrCode

java.lang.Object
  extended by org.osconsulting.l10n.LocalizedMessage
      extended by org.osconsulting.jerr.JErrCode
All Implemented Interfaces:
java.io.Serializable

public class JErrCode
extends LocalizedMessage
implements java.io.Serializable

An JErrorCode contains alphaumeric code and belongs to a certain category of errors. All JErrorCodes need to be listed in an implementation of the JErrorCategory abstact class.

Author:
Kurt Stam Copyright 2006 osConsulting.org Kurt Stam and Shahar Bar
See Also:
Serialized Form

Constructor Summary
JErrCode(java.lang.String code, java.util.Collection<MessageStore> messageStores)
          Constructor, should only be called from the custom JErrorCategory to which this errorCode belongs.
 
Method Summary
 
Methods inherited from class org.osconsulting.l10n.LocalizedMessage
getKey, getLocalizedMessage, getLocalizedMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JErrCode

public JErrCode(java.lang.String code,
                java.util.Collection<MessageStore> messageStores)
Constructor, should only be called from the custom JErrorCategory to which this errorCode belongs. The error code is the key into error MessageStore to find the localized error message in the MessageStore.

Parameters:
code - - alpha numeric code, can be used to display or to lookup the localized error message.
errorCategoryClass - - the custom implementation of the JErrorCategory class to which this errorCode belongs.


Copyright © 2006-2007. All Rights Reserved.