Thomas,
This kind of email belongs to the list were our fellow NetRexx programmers can help
Regarding your actual question, her's a simple example specially tailored to you ;-)
Class CustomExceptionTester
method main(args=String[]) static
do
advertise(0)
advertise(1)
catch e=TooManyReyCAdsException
e.printStackTrace()
end
method advertise(doSignal) signals TooManyReyCAdsException static
if doSignal then do
say 'About to raise TooManyReyCAdsException'
signal TooManyReyCAdsException( -
'That last ReyC ad was really one too many!')
end
else do
say 'Won''t signal anything'
end
Class TooManyReyCAdsException extends Exception
method TooManyReyCAdsException()
super()
method TooManyReyCAdsException(msg=String)
super(msg)
2011/6/17 Thomas Schneider
<[hidden email]>
Hello Rene, & al
Good news:
1.) I'm now able to access the REPO (at least in browsing mode).
I did look at a sample in the repository (BadArgumentException.nrx)
as I always wanted to know how I can raise my own exceptions in my Parser,
but my Java knowledge was simply so small :-(
Do now know what to do ...
2.) changed all of my sources to use the new
org.netrexx.runtime.compatibility
and am currenlty re-compiling my examples (utilities) for the first tests.
3.) Did obtain the actual LICENCE Text I will PREPEND to my sources.
Hence, a lot of issues which have been open for me are now closed.
Only thing which is currently NOT working on my desk is switching the compiler from 2.05 to 3.00 and vice versa. Still experimenting.
Have a nice weekend.
Thomas.
--
Thomas Schneider (www.thsitc.com)
--
Saludos / Regards,
David Requena
_______________________________________________
Ibm-netrexx mailing list
[hidden email]
Online Archive :
http://ibm-netrexx.215625.n3.nabble.com/