OTL 4.0, OTL exception class

OTL exception class

This class is used by the OTL functions to raise exceptions. In case if an OTL function receives a non-zero error code from the underlying database API, the OTL function raises an exception of the otl_exception type. A raised otl_exception may be a database error or an OTL defined exception.

class otl_exception {
public:
     char stm_text[2048];
     char var_info[256];
     unsigned char msg[1000];
     int arr_len;
     char* msg_arr[];
     char* sqlstate_arr[];
     int   code_arr[];
     enum{disabled=0,enabled=1};
}; // end of otl_exception


Prev Next Contents Go Home

Copyright © 1996, 2001, Sergei Kuchin, email: skuchin@sprynet.com, kuchin@hotmail.com .

Permission to use, copy, modify and redistribute this document for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies.

1