

Public Member Functions | |
| AcsJIllegalArgumentEx () | |
| AcsJIllegalArgumentEx (String message) | |
| AcsJIllegalArgumentEx (String message, Throwable cause) | |
| AcsJIllegalArgumentEx (Throwable cause) | |
| AcsJIllegalArgumentEx (ErrorTrace etCause) | |
| AcsJIllegalArgumentEx (String message, ErrorTrace etCause) | |
| String | getShortDescription () |
| UserException | toCorbaException () |
| IllegalArgumentEx | toIllegalArgumentEx () |
| void | setVariable (String value) |
| String | getVariable () |
| void | setValue (String value) |
| String | getValue () |
| void | setErrorDesc (String value) |
| String | getErrorDesc () |
Static Public Member Functions | |
| static AcsJIllegalArgumentEx | fromIllegalArgumentEx (IllegalArgumentEx corbaEx) |
Protected Member Functions | |
| final int | getErrorCode () |
Java native style exception class representing the error type alma.ACSErr.ACSErrType.ACSErrTypeCommon, error code IllegalArgument.value.
| alma::ACSErrTypeCommon::wrappers::AcsJIllegalArgumentEx::AcsJIllegalArgumentEx | ( | ) | [inline] |
Referenced by fromIllegalArgumentEx().
| alma::ACSErrTypeCommon::wrappers::AcsJIllegalArgumentEx::AcsJIllegalArgumentEx | ( | String | message | ) | [inline] |
message should be given as parameters instead! | alma::ACSErrTypeCommon::wrappers::AcsJIllegalArgumentEx::AcsJIllegalArgumentEx | ( | String | message, | |
| Throwable | cause | |||
| ) | [inline] |
message should be given as parameters instead! | alma::ACSErrTypeCommon::wrappers::AcsJIllegalArgumentEx::AcsJIllegalArgumentEx | ( | Throwable | cause | ) | [inline] |
| alma::ACSErrTypeCommon::wrappers::AcsJIllegalArgumentEx::AcsJIllegalArgumentEx | ( | ErrorTrace | etCause | ) | [inline] |
| alma::ACSErrTypeCommon::wrappers::AcsJIllegalArgumentEx::AcsJIllegalArgumentEx | ( | String | message, | |
| ErrorTrace | etCause | |||
| ) | [inline] |
message should be given as parameters instead! | static AcsJIllegalArgumentEx alma::ACSErrTypeCommon::wrappers::AcsJIllegalArgumentEx::fromIllegalArgumentEx | ( | IllegalArgumentEx | corbaEx | ) | [inline, static] |
Converts a CORBA IllegalArgument to an instance of this class.
Note that unlike the constructor AcsJErrTest0Ex(ErrorTrace), this static conversion method does not wrap the existing chain of exceptions with a new exception. It simply converts all exceptions found in the ErrorTrace of corbaEx to the corresponding Java exceptions, knowing that the top level exception is of type IllegalArgument and can always be converted to AcsJIllegalArgumentEx.
Here's an example of how to use this method in a Java program that makes a call so some other component etc.:
private void methodThatMakesARemoteCall() throws AcsJIllegalArgumentEx { try { // this fakes the remote call to a method // which can throw an IllegalArgumentEx... throw new IllegalArgumentEx(); } catch (IllegalArgumentEx corbaEx) { throw AcsJIllegalArgumentEx.fromIllegalArgumentEx(corbaEx); } }
| corbaEx | the CORBA equivalent of this class; will be converted |
corbaEx. References AcsJIllegalArgumentEx(), and alma::ACSErrTypeCommon::IllegalArgumentEx::errorTrace.
| final int alma::ACSErrTypeCommon::wrappers::AcsJIllegalArgumentEx::getErrorCode | ( | ) | [inline, protected, virtual] |
Returns the error code, which is fixed to 18, given by IllegalArgument.value.
Implements alma::acs::exceptions::AcsJException.
| String alma::ACSErrTypeCommon::wrappers::AcsJIllegalArgumentEx::getErrorDesc | ( | ) | [inline] |
| String alma::ACSErrTypeCommon::wrappers::AcsJIllegalArgumentEx::getShortDescription | ( | ) | [inline] |
Returns the short description of the error
Reimplemented from alma::acs::exceptions::AcsJException.
| String alma::ACSErrTypeCommon::wrappers::AcsJIllegalArgumentEx::getValue | ( | ) | [inline] |
References alma::acs::exceptions::AcsJException::getProperty().
Referenced by alma::acs::logging::AcsLogLevelTest::testAcsCoreLevels().
| String alma::ACSErrTypeCommon::wrappers::AcsJIllegalArgumentEx::getVariable | ( | ) | [inline] |
References alma::acs::exceptions::AcsJException::getProperty().
Referenced by alma::acs::logging::AcsLogLevelTest::testAcsCoreLevels().
| void alma::ACSErrTypeCommon::wrappers::AcsJIllegalArgumentEx::setErrorDesc | ( | String | value | ) | [inline] |
References alma::acs::exceptions::AcsJException::setProperty().
Referenced by alma::acs::nc::ArchiveConsumer::ArchiveConsumer().
| void alma::ACSErrTypeCommon::wrappers::AcsJIllegalArgumentEx::setValue | ( | String | value | ) | [inline] |
References alma::acs::exceptions::AcsJException::setProperty().
Referenced by alma::acs::nc::Consumer::Consumer().
| void alma::ACSErrTypeCommon::wrappers::AcsJIllegalArgumentEx::setVariable | ( | String | value | ) | [inline] |
References alma::acs::exceptions::AcsJException::setProperty().
Referenced by alma::acs::nc::ArchiveConsumer::ArchiveConsumer(), and alma::acs::nc::Consumer::Consumer().
| UserException alma::ACSErrTypeCommon::wrappers::AcsJIllegalArgumentEx::toCorbaException | ( | ) | [inline, virtual] |
Implements alma::acs::exceptions::AcsJException.
References toIllegalArgumentEx().
| IllegalArgumentEx alma::ACSErrTypeCommon::wrappers::AcsJIllegalArgumentEx::toIllegalArgumentEx | ( | ) | [inline] |
Creates an IllegalArgument that represents this exception with all its caused-by child exceptions.
Typically to be called from a top-level catch block that must convert any of the Java exceptions used internally by the Java program to an IDL type exception that can be thrown on over CORBA.
org.omg.CORBA.UserException with an embedded ErrorTrace. References alma::acs::exceptions::AcsJException::getErrorTrace().
Referenced by alma::contLogTest::TestLogLevelsCompImpl::TestLogLevelsCompImpl::logDummyMessages(), com::cosylab::acs::maci::plug::ManagerProxyImpl::set_default_logLevels(), alma::acs::container::AcsContainer::set_default_logLevels(), com::cosylab::acs::maci::plug::ManagerProxyImpl::set_logLevels(), alma::acs::container::AcsContainer::set_logLevels(), and toCorbaException().
1.6.2