Is there a list of a list of the exceptions or what can be used
with catch?
I'm thinking that I missed it and there is something easier than
breaking old code, scouring the site, or hypnotic regression.
On 10/10/20 5:12 AM, DMon wrote:
Is there a list of a list of the exceptions or what can be used with catch?
I'm thinking that I missed it and there is something easier than
breaking old code, scouring the site, or hypnotic regression.
Only Throwable and classes that are derived from it can b
On Saturday, 10 October 2020 at 14:56:31 UTC, Ali Çehreli wrote:
On 10/10/20 5:12 AM, DMon wrote:
Is there a list of a list of the exceptions or what can be
used with catch?
Only Throwable and classes that are derived from it can be
thrown and caught.
Ali
Thanks for the reply.
I am looki
On 10/10/20 8:46 AM, DMon wrote:
On Saturday, 10 October 2020 at 14:56:31 UTC, Ali Çehreli wrote:
On 10/10/20 5:12 AM, DMon wrote:
Is there a list of a list of the exceptions or what can be used with
catch?
Only Throwable and classes that are derived from it can be thrown and
caught.
Ali
On Saturday, 10 October 2020 at 16:00:26 UTC, Ali Çehreli wrote:
On 10/10/20 8:46 AM, DMon wrote:
On Saturday, 10 October 2020 at 14:56:31 UTC, Ali Çehreli
wrote:
On 10/10/20 5:12 AM, DMon wrote:
Is there a list of a list of the exceptions or what can be
used with catch?
Only Throwable and c
On Saturday, 10 October 2020 at 12:12:35 UTC, DMon wrote:
Is there a list of a list of the exceptions or what can be used
with catch?
I'm thinking that I missed it and there is something easier
than breaking old code, scouring the site, or hypnotic
regression.
To clarify, do you want a list
On Saturday, 10 October 2020 at 16:37:23 UTC, Imperatorn wrote:
On Saturday, 10 October 2020 at 12:12:35 UTC, DMon wrote:
To clarify, do you want a list of *possible* exceptions, like
in Java?
Please.
I've been looking and thinking that I'm over complicating it for
myself so it may not be ne
On 10/10/20 9:16 AM, DMon wrote:
> catch (Exception e) // implicit (any exception)
> catch (ConvException f) // explicit (conversion only)
>
> Or is that not correct?
I think in class hierarchies, "more general" and "more specific" are
better terms. :)
The answer is, catch by the most general
On Saturday, 10 October 2020 at 18:16:45 UTC, Ali Çehreli wrote:
On 10/10/20 9:16 AM, DMon wrote:
> catch (Exception e) // implicit (any exception)
> catch (ConvException f) // explicit (conversion only)
>
> Or is that not correct?
I think in class hierarchies, "more general" and "more
specifi
On 10/10/20 12:51 PM, DMon wrote:
> I will copy that down.
>
> The idea for specific exceptions came from the online docs and
> Programing in D, 39.2 The try-catch statemet
>
> try
> { // the code block that is being executed, where an // exception may be
> thrown
> }
> catch (an_exception_type)
On Saturday, 10 October 2020 at 19:55:44 UTC, Ali Çehreli wrote:
On 10/10/20 12:51 PM, DMon wrote:
Thank you for your and Imperatorns time.
Even if it did go in circles and get stuck in the mud.
On Saturday, 10 October 2020 at 20:32:22 UTC, DMon wrote:
On Saturday, 10 October 2020 at 19:55:44 UTC, Ali Çehreli wrote:
On 10/10/20 12:51 PM, DMon wrote:
Thank you for your and Imperatorns time.
Even if it did go in circles and get stuck in the mud.
No problem. We're doing it out of free
On Saturday, 10 October 2020 at 19:51:10 UTC, DMon wrote:
This is where I'm at:
import std.stdio;
import std.conv;
// StdioException
// ConvException
// StringException
// ErrnoException
// FormatException
// UnicodeException
// UTFException
// FileMissingException
// DataCorruptionException
/
On Monday, 12 October 2020 at 09:11:35 UTC, Dominikus Dittes
Scherkl wrote:
- ...not care about exceptions someone else defined...except
for printing out their message in main()...
- ...not reuse exceptions defined by someone else. Define your
own.
- ...only if you have a plan...
- ...no pl
On 10/12/20 2:11 AM, Dominikus Dittes Scherkl wrote:
> - Throw exceptions only if you have a plan what to do with them if you
> catch them.
My thinking is different: Throw exceptions if you can't accomplish a
task. My code is filled with enforce() and assert() checks, which do
throw exceptions
15 matches
Mail list logo