summaryrefslogtreecommitdiff
path: root/src/fltk.ads
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2024-12-01 13:34:58 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2024-12-01 13:34:58 +1300
commitdf63542510b6912405f3709b204ad3a59548c917 (patch)
treef5b1fb7b64a7613b1d7de990c22d9c78a5b95292 /src/fltk.ads
parentba29d58fb21f0f376dd4c09df61b4e1d38cb1226 (diff)
Improved specificity of exceptions with Internal_FLTK_Error and Storage_Error
Diffstat (limited to 'src/fltk.ads')
-rw-r--r--src/fltk.ads5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fltk.ads b/src/fltk.ads
index e0ebf1c..3a0e332 100644
--- a/src/fltk.ads
+++ b/src/fltk.ads
@@ -21,12 +21,15 @@ package FLTK is
-- This is necessary so things like Text_Buffers and
-- Widgets can talk to each other behind the binding.
type Wrapper is new Ada.Finalization.Limited_Controlled with private;
- -- with Type_Invariant => Is_Valid (Wrapper);
function Is_Valid
(Object : in Wrapper)
return Boolean;
+ -- If this is ever raised it means FLTK has returned a value or otherwise
+ -- acted in a way that the binding really did not expect.
+ Internal_FLTK_Error : exception;
+