2005-05-15 02:50:07 +00:00
|
|
|
//This file is part of Photon (http://photon.sourceforge.net)
|
|
|
|
//Copyright (C) 2004-2005 James Turk
|
|
|
|
//
|
|
|
|
// Author:
|
|
|
|
// James Turk (jpt2433@rit.edu)
|
|
|
|
//
|
|
|
|
// Version:
|
2005-06-10 07:06:06 +00:00
|
|
|
// $Id: exception_test.cpp,v 1.2 2005/06/10 07:06:07 cozman Exp $
|
2005-05-15 02:50:07 +00:00
|
|
|
|
|
|
|
#include "photon.hpp"
|
2005-06-10 07:06:06 +00:00
|
|
|
#include "exceptions.hpp"
|
|
|
|
#include "entrypoint.hpp"
|
|
|
|
|
2005-05-15 02:50:07 +00:00
|
|
|
using namespace photon;
|
|
|
|
|
|
|
|
|
|
|
|
class ExceptionTest : public Application
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
int main(const StrVec& args)
|
|
|
|
{
|
|
|
|
throw Error("catch this!");
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
ENTRYPOINT(ExceptionTest)
|
|
|
|
|