summaryrefslogtreecommitdiff
path: root/src/fltk-draw.adb
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-draw.adb
parentba29d58fb21f0f376dd4c09df61b4e1d38cb1226 (diff)
Improved specificity of exceptions with Internal_FLTK_Error and Storage_Error
Diffstat (limited to 'src/fltk-draw.adb')
-rw-r--r--src/fltk-draw.adb8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fltk-draw.adb b/src/fltk-draw.adb
index 1a87285..42b3d26 100644
--- a/src/fltk-draw.adb
+++ b/src/fltk-draw.adb
@@ -673,7 +673,7 @@ package body FLTK.Draw is
elsif Result = 0 then
return False;
else
- raise Program_Error;
+ raise Internal_FLTK_Error;
end if;
end Can_Do_Alpha_Blending;
@@ -1215,7 +1215,7 @@ package body FLTK.Draw is
Interfaces.C.int (H),
Interfaces.C.int (Alpha));
if Buffer /= Storage.To_Integer (Result (Result'First)'Address) then
- raise Program_Error;
+ raise Internal_FLTK_Error;
end if;
return Result;
end Read_Image;
@@ -1240,7 +1240,7 @@ package body FLTK.Draw is
if Ret_Val = 0 then
raise Draw_Error;
elsif Ret_Val /= 1 then
- raise Program_Error;
+ raise Internal_FLTK_Error;
end if;
end Add_Symbol;
@@ -1407,7 +1407,7 @@ package body FLTK.Draw is
if Ret_Val = 0 then
raise Draw_Error;
elsif Ret_Val /= 1 then
- raise Program_Error;
+ raise Internal_FLTK_Error;
end if;
end Draw_Symbol;