]>
cygwin.com Git - cygwin-apps/setup.git/blob - Exception.h
2 * Copyright (c) 2001, Robert Collins.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * A copy of the GNU General Public License can be found at
12 * Written by Robert Collins <rbtcollins@hotmail.com>
16 /* this is the parent class for all package source (not source code - installation
17 * source as in http/ftp/disk file) operations.
25 /* Generic excpetion class for throwing exceptions */
26 class Exception
: public exception
{
28 Exception (char const *where
, char const *message
, int appErrNo
= 0);
29 char const *what() const;
36 // Where should these live?
37 #define APPERR_CORRUPT_PACKAGE 1
38 #define APPERR_IO_ERROR 2
40 #endif /* _EXCEPTION_H_ */
This page took 0.034766 seconds and 5 git commands to generate.