Package com.sun.ts.lib.harness
Class RemoteStatus
java.lang.Object
com.sun.ts.lib.harness.RemoteStatus
- All Implemented Interfaces:
Serializable
Used to return status information from the server to the client.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a RemoteStatus from a StatusRemoteStatus
(Status s, Throwable error) Create a RemoteStatus from a Status and an error -
Method Summary
-
Constructor Details
-
RemoteStatus
Create a RemoteStatus from a Status- Parameters:
s
- - test status
-
RemoteStatus
Create a RemoteStatus from a Status and an error- Parameters:
s
- - test statuserror
- - error that caused the status
-
-
Method Details
-
toStatus
Convert this RemoteStatus to a Status- Returns:
- Status
-
getType
public int getType()Get the type of the status- Returns:
- type
-
hasError
public boolean hasError()See if this status has error information- Returns:
- true if there is error information
-
getErrorTrace
Get the error trace- Returns:
- error trace or null
-
getErrorMessage
Get the error message- Returns:
- error message or null
-
toString
String representation with status and cause information. Optionally may have error message and trace.
-