# class::api::WorkObject

class api::WorkObject
: public api::ApiObject


The WorkObject is the base object for all work classes in the Stratify API.

It is a simple object that allows the inheriting class to set an error or halt the program if it encouters a fatal problem.

It is used as the base of objects that make system calls so that the error generated by the system can be reported through the object.

### Members

###### static void exit_fatal(

const char * message
)

int value
) const

int result
) const

void * ret
) const

### Details

##### void clear_result() const

Clears the current result.

##### interror_number() const

Returns the error number.

If the error number is zero. There is no error.

If the error number is greater than zero. It indicates an error indicator from the standard C library (such as ENOENT).

If the error number is zero or less, it refers to a StratifyAPI defined error like ERROR_NONE.

##### const Result & result() const

Returns a referenct to the result of the last operation.

##### intreturn_value() const

Returns the return value of the last operation.

##### static void exit_fatal(

const char * message
)

int value
) const

int result
) const

void * ret
) const

##### enum @0
• ERROR_NONE No Errors

X