Message: Re: error linking linac example when it is modified to read iaea files Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: error linking linac example when it is modified to read iaea files 

Forum: Medical Applications
Re: None error linking linac example when it is modified to read iaea files (Balder)
Re: None Re: error linking linac example when it is modified to read iaea files (Miguel Cortes-Giraldo)
Re: Question Re: error linking linac example when it is modified to read iaea files (Balder)
Re: None Re: error linking linac example when it is modified to read iaea files
Re: None Re: error linking linac example when it is modified to read iaea files (Miguel Cortes-Giraldo)
Re: None Re: error linking linac example when it is modified to read iaea files
Date: Mar 20, 08:07
From: Miguel Cortes-Giraldo <Miguel Cortes-Giraldo>

Dear Heid,

A normal use of G4Exception is this:

- originOfException: Text including class name and method name. (e.g.: "G4IAEAphspReader::G4IAEAphspReader()") - exceptionCode: Text with an error code (whatever format as long it is text); e.g.: "IAEAphspReader0001" - Severity and description look ok to me.

Then, in your case, should that exception is thrown, then the description message would appear twice, which is not the regular way of coding it. But, that will only affect on how the exception is described on output. It will _not_ affect the functioning of the class itself, as an exception is thrown there is something wrong or unexpected during the program execution. So, probably, you should worry about something else, not the exception description itself :-)

Also, you picked the lowest severity level (JustWarning) which means that the code would follow through. Maybe this particular one deserved higher severity, but a throwing a warning is also ok.

In short, the code should work smoothly. If an exception is thrown, the message will not be standard. That's all.

Hope it helps, Miguel

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: error linking linac example when it is modified to read iaea files   (heid - Mar 22, 00:55)
 Add Message Add Message
to: "Re: error linking linac example when it is modified to read iaea files"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]