Re: perlmagick try catch

Bob Friesenhahn <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.help
Message-ID <[email protected]>
On Fri, 24 Jul 2015, Rick Leir wrote:

> Hi Bob and everyone,
> (I am resending this because the lists were down)
> Is there a way to catch exceptions? Here is a simple test, with an obvious error, Rotate does not accept geometry, but the program
> does not get to the catch:

I did previously respond directly to your email address.

To my knowledge, the GraphicsMagick variant of PerlMagick does not 
throw native Perl exceptions.  Instead it returns a parsable string 
which includes the word "Exception".

Perhaps PerlMagick was implemented before Perl supported exceptions.

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.