• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ocithrow.cpp

Go to the documentation of this file.
00001 
00002  //
00003  // ocithrow.cpp
00004  //
00005  // Copyright (c) 2004, 2005, 2006, 2007, 2008, 2009 Martin Fuchs <martin-fuchs@gmx.net>
00006  //
00007 
00008  /// \file ocithrow.cpp
00009  /// replaceable Exception converter containing the OCIPL::throw_ocipl_exception() function
00010 
00011 
00012 /*
00013 
00014   All rights reserved.
00015 
00016   Redistribution and use in source and binary forms, with or without
00017   modification, are permitted provided that the following conditions are met:
00018 
00019   * Redistributions of source code must retain the above copyright
00020     notice, this list of conditions and the following disclaimer.
00021   * Redistributions in binary form must reproduce the above copyright
00022     notice, this list of conditions and the following disclaimer in
00023     the documentation and/or other materials provided with the
00024     distribution.
00025 
00026   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
00027   AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00028   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00029   ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
00030   LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
00031   CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
00032   SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00033   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
00034   CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
00035   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00036   POSSIBILITY OF SUCH DAMAGE.
00037 
00038 */
00039 
00040 #ifndef OCIPL_NO_COMMENT
00041 #define OCIPL_NO_COMMENT    // no #pragma comment(lib, ...) statements in .lib files -> free selection of orasql library
00042 #endif
00043 
00044 #define _olint  // for #define CONST const
00045 #include "ocipl.h"
00046 
00047 
00048 namespace OCIPL {
00049 
00050 
00051  /** This function is called to throw OCIPL Exceptions in response to Oracle Errors.
00052   You can plug in your own version instead by implementing and linking another
00053   throw_ocipl_exception() function.
00054  */
00055 void throw_ocipl_exception(OciException e)
00056 {
00057     throw e;
00058 }
00059 
00060 
00061 }

Generated on Fri Sep 22 2017 00:05:09 for OCIPL/C++ by  doxygen 1.7.2