summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2012-06-29 12:43:34 +0100
committerGraeme Geldenhuys <graemeg@gmail.com>2012-06-29 12:43:34 +0100
commit03d4a1507747cd6364d1c418947e5f89b687d817 (patch)
tree171cf29a587ad41780a7b9e677fe946110ce1096
parent20f641fd1321813360aa4b5b935324d53c83a6b2 (diff)
downloadfpGUI-03d4a1507747cd6364d1c418947e5f89b687d817.tar.xz
Added new Exception classes for use in fpGUI.
The thinking behind this is so that we can trap fpGUI specific exceptions in our applications if we wanted to. Thus handling them slightly different to other exceptions.
-rw-r--r--src/corelib/fpg_base.pas7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/corelib/fpg_base.pas b/src/corelib/fpg_base.pas
index 0da6cf25..5d8b66f5 100644
--- a/src/corelib/fpg_base.pas
+++ b/src/corelib/fpg_base.pas
@@ -81,6 +81,13 @@ type
TfpgEditBorderStyle = (ebsNone, ebsDefault, ebsSingle);
+ // in case we wanted to trap any fpGUI specific exceptions
+ EfpGUIException = class(Exception);
+
+ // For providing user feedback. No need to display backtrace information
+ EfpGUIUserFeedbackException = class(EfpGUIException);
+
+
const
MOUSE_LEFT = 1;