Added a constructor that takes a message bundle and a code and creates a
qualified error code with them. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2308 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,8 +1,10 @@
|
|||||||
//
|
//
|
||||||
// $Id: InvocationException.java,v 1.1 2002/08/14 19:07:56 mdb Exp $
|
// $Id: InvocationException.java,v 1.2 2003/03/17 19:21:45 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.presents.server;
|
package com.threerings.presents.server;
|
||||||
|
|
||||||
|
import com.threerings.util.MessageBundle;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to report failures when executing service requests.
|
* Used to report failures when executing service requests.
|
||||||
*/
|
*/
|
||||||
@@ -16,4 +18,15 @@ public class InvocationException extends Exception
|
|||||||
{
|
{
|
||||||
super(cause);
|
super(cause);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructs an invocation exception with the supplied cause code
|
||||||
|
* string and qualifying message bundle. The error code will be
|
||||||
|
* qualified with the message bundle (see {@link
|
||||||
|
* MessageBundle#qualify}).
|
||||||
|
*/
|
||||||
|
public InvocationException (String bundle, String code)
|
||||||
|
{
|
||||||
|
this(MessageBundle.qualify(bundle, code));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user