public class ActErrorResult extends org.osgl.mvc.result.ErrorResult implements ActError
org.osgl.mvc.result.Result.Payload
ActError.Util
Modifier and Type | Field and Description |
---|---|
protected SourceInfo |
sourceInfo |
Constructor and Description |
---|
ActErrorResult(org.osgl.http.H.Status status) |
ActErrorResult(org.osgl.http.H.Status status,
int errorCode) |
ActErrorResult(org.osgl.http.H.Status status,
int errorCode,
String message,
Object... args) |
ActErrorResult(org.osgl.http.H.Status status,
int errorCode,
Throwable cause) |
ActErrorResult(org.osgl.http.H.Status status,
int errorCode,
Throwable cause,
String message,
Object... args) |
ActErrorResult(org.osgl.http.H.Status status,
String message,
Object... args) |
ActErrorResult(org.osgl.http.H.Status status,
Throwable cause) |
ActErrorResult(org.osgl.http.H.Status status,
Throwable cause,
String message,
Object... args) |
ActErrorResult(Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static ActErrorResult |
enhancingError(act.asm.AsmException exception) |
Throwable |
getCauseOrThis() |
protected void |
init() |
boolean |
isErrorSpot(String traceLine,
String nextTraceLine) |
static org.osgl.mvc.result.ErrorResult |
of(org.osgl.http.H.Status status) |
static org.osgl.mvc.result.ErrorResult |
of(org.osgl.http.H.Status status,
int errorCode) |
static org.osgl.mvc.result.ErrorResult |
of(org.osgl.http.H.Status status,
int errorCode,
String message,
Object... args) |
static org.osgl.mvc.result.ErrorResult |
of(org.osgl.http.H.Status status,
String message,
Object... args) |
static org.osgl.mvc.result.Result |
of(int statusCode)
Deprecated.
|
static org.osgl.mvc.result.Result |
of(Throwable t) |
static org.osgl.mvc.result.Result |
ofStatus(int statusCode) |
protected void |
populateSourceInfo(act.asm.AsmContext context) |
protected void |
populateSourceInfo(Throwable t) |
static Throwable |
rootCauseOf(Throwable t) |
static ActErrorResult |
scanningError(act.asm.AsmException exception) |
SourceInfo |
sourceInfo() |
List<String> |
stackTrace() |
int |
statusCode() |
_localizedErrorMsg, applyMessage, attach, attachment, attachment, defaultMessage, errorCode, getLocalizedMessage, of, of, of, toJsonString, toKVStore, toString
addCookie, addHeader, apply, applyAfterCommitHandler, applyBeforeCommitHandler, applyCookies, applyHeaders, applyStatus, clearThreadLocals, header, payload, status, status, timestamp, touchPayload
doFillInStackTrace, fillInStackTrace
addSuppressed, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCause, getLocalizedMessage, getMessage
protected SourceInfo sourceInfo
public ActErrorResult(org.osgl.http.H.Status status)
public ActErrorResult(org.osgl.http.H.Status status, int errorCode)
public ActErrorResult(org.osgl.http.H.Status status, int errorCode, String message, Object... args)
public ActErrorResult(Throwable cause)
public ActErrorResult(org.osgl.http.H.Status status, Throwable cause)
public ActErrorResult(org.osgl.http.H.Status status, Throwable cause, String message, Object... args)
public ActErrorResult(org.osgl.http.H.Status status, int errorCode, Throwable cause, String message, Object... args)
public ActErrorResult(org.osgl.http.H.Status status, int errorCode, Throwable cause)
public Throwable getCauseOrThis()
getCauseOrThis
in interface ActError
public SourceInfo sourceInfo()
sourceInfo
in interface ActError
public int statusCode()
statusCode
in class org.osgl.mvc.result.Result
public List<String> stackTrace()
stackTrace
in interface ActError
public boolean isErrorSpot(String traceLine, String nextTraceLine)
isErrorSpot
in interface ActError
protected void init()
protected void populateSourceInfo(Throwable t)
protected void populateSourceInfo(act.asm.AsmContext context)
public static org.osgl.mvc.result.Result of(Throwable t)
public static ActErrorResult scanningError(act.asm.AsmException exception)
public static ActErrorResult enhancingError(act.asm.AsmException exception)
public static org.osgl.mvc.result.Result ofStatus(int statusCode)
@Deprecated public static org.osgl.mvc.result.Result of(int statusCode)
public static org.osgl.mvc.result.ErrorResult of(org.osgl.http.H.Status status)
public static org.osgl.mvc.result.ErrorResult of(org.osgl.http.H.Status status, String message, Object... args)
public static org.osgl.mvc.result.ErrorResult of(org.osgl.http.H.Status status, int errorCode)
public static org.osgl.mvc.result.ErrorResult of(org.osgl.http.H.Status status, int errorCode, String message, Object... args)
Copyright © 2014-2017 ActFramework. All Rights Reserved.