PreviousNext

The exceptions Attribute

The exceptions attribute specifies a set of user-defined exceptions that can be generated by the server implementation of the interface. The exceptions attribute takes the form:

exceptions (exception_name [,exception_name] ...)

The following is a sample declaration of an exceptions attribute:

[uuid(06255501-08AF-11CB-8C4F-08002B13D56D),

version (1.1),

exceptions (

exc_e_exquota,

binop_e_aborted,

binop_e_too_busy,

binop_e_shutdown)

] interface binop

{

long binop_add(

[in] long a,

[in] long b

);

}

See Topics in RPC Application Development for more information on using exceptions.