Documentation Archive Developer
Search
[an error occurred while processing this directive] PATH  Documentation > WebObjects 4.5 > SybaseEOAdaptor Reference

Table of Contents

SybaseContext Delegate


(informal protocol)
Declared in: SybaseEOAdaptor/SybaseContext.h


Protocol Description


The SybaseContext delegate object allows developers access to all the messages returned from the Sybase client library or the Sybase Server. If your implementation of these delegate methods returns NO, the SybaseContext will not report the message (or error). If your implementation returns YES, the SybaseContext will continue as usual. Most messages are reported in exceptions, but messages with a severity of 0 are simply ignored.



Instance Methods



sybaseContext:shouldReportClientMessage:

- (BOOL)sybaseContext:(SybaseContext *)context shouldReportClientMessage:(NSDictionary *)clientMessage

Invoked when an exception results from a callback to the CS_CLIENTMSG_CB (Sybase ClientMessage callback). Gives the delegate the opportunity to substitute clientMessage as the userInfo dictionary.

sybaseContext:shouldReportServerMessage:

- (BOOL)sybaseContext:(SybaseContext *)context shouldReportServerMessage:(NSDictionary *)serverMessage

Invoked when an exception results from a callback to the CS_SERVERMSG_CB (Sybase ServerMessage callback). Gives the delegate the opportunity to substitute serverMessage as the userInfo dictionary.


Table of Contents