/*
  This file is part of CDO. CDO is a collection of Operators to
  manipulate and analyse Climate model Data.

  Copyright (C) 2003-2019 Uwe Schulzweida, <uwe.schulzweida AT mpimet.mpg.de>
  See COPYING file for copying and redistribution conditions.

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; version 2 of the License.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
*/
#ifndef EXCEPTION_H
#define EXCEPTION_H

namespace CimdOut
{
void enableSilentMode(bool enable);
void enableErrorReporting(bool enable);
void enableExitOnError(bool enable);
void setExitFunction(void (*func)(void));
void setContextFunction(const char *(*func)(void) );
}  // namespace CimdOut

void cdiOpenError(int cdiErrno, const char *fmt, const char *path);
void cdoAbort(const char *fmt, ...);
void cdoWarning(const char *fmt, ...);
void cdoPrint(const char *fmt, ...);
void cdoPrintBlue(const char *fmt, ...);
void cdoPrintRed(const char *fmt, ...);

#endif
