public class ServerFault
extends java.lang.RuntimeException
Constructor and Description |
---|
ServerFault() |
ServerFault(ServerFault t) |
ServerFault(java.lang.String s) |
ServerFault(java.lang.String s,
ErrorCode ec) |
ServerFault(java.lang.String s,
java.lang.Throwable t) |
ServerFault(java.lang.Throwable t) |
Modifier and Type | Method and Description |
---|---|
static ServerFault |
alreadyExists(java.lang.String message) |
static ServerFault |
create(ErrorCode errorCode,
java.lang.Throwable t) |
ErrorCode |
getCode() |
static ServerFault |
notFound(java.lang.String message) |
void |
setCode(ErrorCode code) |
static ServerFault |
sqlFault(java.lang.Exception t) |
public ServerFault()
public ServerFault(java.lang.String s, java.lang.Throwable t)
public ServerFault(java.lang.Throwable t)
public ServerFault(ServerFault t)
public ServerFault(java.lang.String s)
public ServerFault(java.lang.String s, ErrorCode ec)
public ErrorCode getCode()
public void setCode(ErrorCode code)
public static ServerFault sqlFault(java.lang.Exception t)
public static ServerFault create(ErrorCode errorCode, java.lang.Throwable t)
public static ServerFault notFound(java.lang.String message)
public static ServerFault alreadyExists(java.lang.String message)
Copyright © 2021. All Rights Reserved.