LibMuse 6.0.3
com.choosemuse.libmuse.Result Class Reference

Public Member Functions

 Result (ResultLevel level, String type, int code, String info)
 
ResultLevel getLevel ()
 
String getType ()
 
int getCode ()
 
String getInfo ()
 
String toString ()
 

Detailed Description

Represents the result of a synchronous operation.

Results can be at different levels: eg, success, info, warning, error

Member Function Documentation

§ getCode()

int com.choosemuse.libmuse.Result.getCode ( )
inline

A machine-parseable error code

Returns
0 if the result is a success, non-zero otherwise.

§ getInfo()

String com.choosemuse.libmuse.Result.getInfo ( )
inline

Human-readable description

Returns
A verbose description of the result (error message or status)

§ getLevel()

ResultLevel com.choosemuse.libmuse.Result.getLevel ( )
inline

The level of the result.

Returns
The ResultLevel

§ getType()

String com.choosemuse.libmuse.Result.getType ( )
inline

The type of operation that this result applies to as a string.

Returns
The type of this result.

§ toString()

String com.choosemuse.libmuse.Result.toString ( )
inline

Returns a string representation of this object.

Returns
a string representation of this object.

The documentation for this class was generated from the following file: