Hello all,
I'm trying to create a Status Object in EPICSv4 with JAVA and I'm using
Status Factory and StatusCreate class. However, in the documentation of
the StatusCreate class says:
/**
* Create status.
* @param type status type, non-<code>null</code>.
* @param message message describing an error, non-<code>null</code>.
* NOTE: Do NOT use <code>throwable.getMessage()</code> as message,
since it will be supplied with the <code>cause</code>.
* @param cause exception that caused an error. Optional.
* @return status instance.
*/
Status createStatus(StatusType type, String message, Throwable cause);
About creating an status says that parameter Throwable cause it says
it's optional but I can't see how it can be optional. And also, if
status is OK you should not return the status in a catch excepcion
clause, should I? So in that case, status OK how I suppose to have a
Throwable object? Then I should use null in this parameter, am I right?
Thank you very much for your help.
Yours, Ricardo
--
Doctorando i2a2
Jefe de Servicio de Instalaciones - CEDEX
- Navigate by Date:
- Prev:
Re: SNL: state change statement in entry block Johnson, Andrew N.
- Next:
RE: state change statement in entry block Dalesio, Leo
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
<2015>
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: SNL: state change statement in entry block Benjamin Franksen
- Next:
Problems running areaDetector to control simulation detector GONG Yu
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
<2015>
2016
2017
2018
2019
2020
2021
2022
2023
2024
|