octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in try-catch?


From: Ben Abbott
Subject: Re: bug in try-catch?
Date: Fri, 10 Jun 2016 08:19:01 -0400

> On Jun 10, 2016, at 6:20 AM, JuanPi <address@hidden> wrote:
> 
> Can anybody corroborate that
> 
> try error("id", "1\n"); catch err; disp(err.identifier); disp(err.message); 
> end
> 
> prints nothing for the id and the id for the message (Octave 4.1.0+ and 
> stable)
> 
> This seems like an bug.

With Matlab 2014a, there is no identifier.

try error('id', '1\n'); catch err; disp(err.identifier); disp(err.message); end
id

err = 

  MException with properties:

    identifier: ''
       message: 'id'
         cause: {0x1 cell}
         stack: [0x1 struct]

Ben




reply via email to

[Prev in Thread] Current Thread [Next in Thread]