Programming Guide



sm_raise_exception

Sends an error back to the client

int sm_raise_exception(int error, char *message);

error
Error code to be returned to the client with COM components.

message
Error message to be returned to the client with Enterprise JavaBeans.

Environment

COM, EJB

Scope

Server

Description

sm_raise_exception sends an error code and message back to the client. The client's error handler then can decide what to do based on the value sent.

For COM applications, Microsoft defines some conventional exception codes for use in COM programming; see winerror.h.

See Also

sm_receive_args, sm_return_args