NAME

Tibco::Rv::Status - status code

SYNOPSIS

my ( $status ) =
   new Tibco::Rv::Status( status => Tibco::Rv::INVALID_ARG );

Tibco::Rv::die( $status ) unless ( $status == Tibco::Rv::OK );

DESCRIPTION

Wrapper class for status codes.

CONSTRUCTOR

$status = new Tibco::Rv::Status( %args )
%args
   status => $status

Creates a Tibco::Rv::Status object with the given status.

METHODS

$num = $status->toNum (or 0+$status)

Returns the numeric value of $status. Or, simply use $status in a numeric context.

$str = $status->toString (or "$status")

Returns a descriptive string of $status. Or, simply use $status in a string context.

AUTHOR

Paul Sturm <sturm@branewave.com>