ch.agent.crnickl.jdbc
Class T2DBJMsg

java.lang.Object
  extended by ch.agent.core.KeyedMessage
      extended by ch.agent.crnickl.jdbc.T2DBJMsg

public class T2DBJMsg
extends ch.agent.core.KeyedMessage

T2DBJMsg provides keyed messages to the package.

Author:
Jean-Paul Vetterli

Nested Class Summary
 class T2DBJMsg.J
          Message symbols.
 
Constructor Summary
T2DBJMsg(String key, Object... args)
          Construct a keyed message.
 
Method Summary
static T2DBJException exception(String key, Object... arg)
          Return a keyed exception.
static T2DBJException exception(Throwable cause, String key, Object... arg)
          Return a keyed exception.
 
Methods inherited from class ch.agent.core.KeyedMessage
getCategory, getKey, getMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

T2DBJMsg

public T2DBJMsg(String key,
                Object... args)
Construct a keyed message.

Parameters:
key - a key
args - zero or more arguments
Method Detail

exception

public static T2DBJException exception(String key,
                                       Object... arg)
Return a keyed exception.

Parameters:
key - a key
arg - zero or more arguments
Returns:
a keyed exception

exception

public static T2DBJException exception(Throwable cause,
                                       String key,
                                       Object... arg)
Return a keyed exception.

Parameters:
cause - the exception's cause
key - a key
arg - zero or more arguments
Returns:
a keyed exception


Copyright © 2013. All Rights Reserved.