diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2024-12-01 13:34:58 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2024-12-01 13:34:58 +1300 |
commit | df63542510b6912405f3709b204ad3a59548c917 (patch) | |
tree | f5b1fb7b64a7613b1d7de990c22d9c78a5b95292 /src/fltk-widgets-groups-browsers.adb | |
parent | ba29d58fb21f0f376dd4c09df61b4e1d38cb1226 (diff) |
Improved specificity of exceptions with Internal_FLTK_Error and Storage_Error
Diffstat (limited to 'src/fltk-widgets-groups-browsers.adb')
-rw-r--r-- | src/fltk-widgets-groups-browsers.adb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fltk-widgets-groups-browsers.adb b/src/fltk-widgets-groups-browsers.adb index 9798c89..bdf79e2 100644 --- a/src/fltk-widgets-groups-browsers.adb +++ b/src/fltk-widgets-groups-browsers.adb @@ -750,7 +750,7 @@ package body FLTK.Widgets.Groups.Browsers is Boolean'Pos (Do_Callbacks)); begin if Code not in 0 .. 1 then - raise Program_Error; + raise Internal_FLTK_Error; end if; return Boolean'Val (Code); end Set_Select; @@ -768,7 +768,7 @@ package body FLTK.Widgets.Groups.Browsers is Boolean'Pos (Do_Callbacks)); begin if Code not in 0 .. 1 then - raise Program_Error; + raise Internal_FLTK_Error; end if; return Boolean'Val (Code); end Select_Only; @@ -792,7 +792,7 @@ package body FLTK.Widgets.Groups.Browsers is Boolean'Pos (Do_Callbacks)); begin if Code not in 0 .. 1 then - raise Program_Error; + raise Internal_FLTK_Error; end if; return Boolean'Val (Code); end Deselect; @@ -816,7 +816,7 @@ package body FLTK.Widgets.Groups.Browsers is Cursor_To_Address (Item)); begin if Code not in 0 .. 1 then - raise Program_Error; + raise Internal_FLTK_Error; end if; return Boolean'Val (Code); end Is_Displayed; |