|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectiitb.con.util.Result
public class Result
Result class holds the status of the method execution. It acts like a boolean wrapper. User can set the status as true or false with appropriate message or exception.
| Field Summary | |
|---|---|
java.lang.String |
ErrMessage
Error messages of the method execution |
java.lang.Throwable |
Exception
Stores exception of the method execution |
java.lang.String |
Message
Information of method execution status |
java.lang.Object |
Object
Stores return object |
boolean |
Success
Stores true or false value of the method execution status |
| Constructor Summary | |
|---|---|
Result()
|
|
Result(boolean Success)
Initializes the newly created Result with success status. |
|
Result(boolean Success,
java.lang.String message)
Initializes the newly created Result with
the failure status and error message. |
|
Result(boolean Success,
java.lang.String message,
java.lang.Throwable Exception)
Initializes the newly created Result with
the failure status and error message. |
|
| Method Summary | |
|---|---|
static void |
status(Result result)
Outputs the status of the Result object |
static void |
status(java.lang.String msg,
Result result)
Outputs the status of the Result object along with the user's message |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public java.lang.String ErrMessage
public java.lang.Throwable Exception
public java.lang.String Message
public java.lang.Object Object
public boolean Success
| Constructor Detail |
|---|
public Result()
public Result(boolean Success)
Result with success status.
Success - success status
public Result(boolean Success,
java.lang.String message)
Result with
the failure status and error message.
Success - success statusmessage - error message
public Result(boolean Success,
java.lang.String message,
java.lang.Throwable Exception)
Result with
the failure status and error message.
Success - success statusmessage - error message| Method Detail |
|---|
public static void status(Result result)
result - the Result object
public static void status(java.lang.String msg,
Result result)
msg - messageresult - the Result object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||