public class

ExecutionResult

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.interpreter.ExecutionResult

Class Overview

An object representing the result of execution of an action, including a type integer (return code) and a message string.

Summary

Constants
int CODE_ERROR
int CODE_NOT_IMPLEMENTED
int CODE_NOT_SUPPORTED
int CODE_SUCCESS
Fields
public static final ExecutionResult GENERIC_ERROR
public static final ExecutionResult GENERIC_SUCCESS
public static final ExecutionResult NOT_IMPLEMENTED
public static final ExecutionResult NOT_SUPPORTED
Public Methods
boolean equals(Object obj)
static ExecutionResult error(Throwable e)
static ExecutionResult error(String msg)
static ExecutionResult failure(String msg)
static ExecutionResult fromBoolean(boolean success)
static ExecutionResult fromObject(Object object)
int getCode()
String getMessage()
int getType()
int hashCode()
boolean isError()
boolean isSuccess()
static ExecutionResult success(String msg)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int CODE_ERROR

Constant Value: -1 (0xffffffff)

public static final int CODE_NOT_IMPLEMENTED

Constant Value: -3 (0xfffffffd)

public static final int CODE_NOT_SUPPORTED

Constant Value: -2 (0xfffffffe)

public static final int CODE_SUCCESS

Constant Value: 0 (0x00000000)

Fields

public static final ExecutionResult GENERIC_ERROR

public static final ExecutionResult GENERIC_SUCCESS

public static final ExecutionResult NOT_IMPLEMENTED

public static final ExecutionResult NOT_SUPPORTED

Public Methods

public boolean equals (Object obj)

public static ExecutionResult error (Throwable e)

public static ExecutionResult error (String msg)

public static ExecutionResult failure (String msg)

public static ExecutionResult fromBoolean (boolean success)

public static ExecutionResult fromObject (Object object)

public int getCode ()

public String getMessage ()

public int getType ()

public int hashCode ()

public boolean isError ()

public boolean isSuccess ()

public static ExecutionResult success (String msg)

public String toString ()