From 8f9337568befa81e82e97abd4d2d75e3a5c5fbe9 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 14 Dec 2019 21:18:22 -0800 Subject: Added ExceptionParse. I would like to move to exceptions carrying encoded parameters. For example parse could carry source name (filename), line, character, etc. --- src/stable/exceptionparse.cpp | 14 ++++++++++++++ src/stable/exceptionparse.h | 17 +++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 src/stable/exceptionparse.cpp create mode 100644 src/stable/exceptionparse.h diff --git a/src/stable/exceptionparse.cpp b/src/stable/exceptionparse.cpp new file mode 100644 index 0000000..98440a4 --- /dev/null +++ b/src/stable/exceptionparse.cpp @@ -0,0 +1,14 @@ +/* + * Copyright (C) 2007-2019 Xagasoft, All rights reserved. + * + * This file is part of the libbu++ library and is released under the + * terms of the license contained in the file LICENSE. + */ + +#include "exceptionparse.h" + +namespace Bu +{ + subExceptionDef( ExceptionParse ); +} + diff --git a/src/stable/exceptionparse.h b/src/stable/exceptionparse.h new file mode 100644 index 0000000..83eddb0 --- /dev/null +++ b/src/stable/exceptionparse.h @@ -0,0 +1,17 @@ +/* + * Copyright (C) 2007-2019 Xagasoft, All rights reserved. + * + * This file is part of the libbu++ library and is released under the + * terms of the license contained in the file LICENSE. + */ +#ifndef BU_EXCPTION_PARSE_H +#define BU_EXCPTION_PARSE_H + +#include "bu/exceptionbase.h" + +namespace Bu +{ + subExceptionDecl( ExceptionParse ); +} + +#endif -- cgit v1.2.3