public static InvocationResponse error(Throwable t) {
		InvocationResponse resp = new InvocationResponse(ERROR);
		resp.errorMessage = t.getClass().getName() + ":" + t.getLocalizedMessage();
		return resp;
	}
public static InvocationResponse error(Throwable t) {
		InvocationResponse resp = new InvocationResponse(ERROR);
		resp.errorMessage = t.getClass().getName() + ":" + t.getLocalizedMessage();
		return resp;
	}
public static InvocationResponse error ( Throwable t ) { InvocationResponse resp = new InvocationResponse ( ERROR ) ; resp . errorMessage = t . getClass ( ) . getName ( ) + ":" + t . getLocalizedMessage ( ) ; return resp ; }
Creates a new {@link InvocationResponse} to hold the error that occurred
during the execution of the service.

@param t
- the throwable that caused the error.
@return the invocation request.
Creates a new { @link InvocationResponse } to hold the error that occurred during the execution of the service .