Information
We are currently investigating an issue with the editor of some pages. Please save your work and avoid to create new pages until this banner is gone.
...
Throwing exceptions is done in the servant that implements the IDL method that declared the error.
Python
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
import SYSTEMErrImpl ... raise SYSTEMErrImpl.AlreadyInAutomaticExImpl().getAlreadyInAutomaticEx() ... |
Java
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
import alma.SYSTEMErr.wrappers.AcsJAlreadyInAutomaticEx; ... throw new AcsJAlreadyInAutomaticEx("Some message...").toAlreadyInAutomaticEx(); ... |
C++
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
#include <SYSTEMErr.h> ... throw SYSTEMErr::AlreadyInAutomaticExImpl(__FILE__, __LINE__, "Some message...").getAlreadyInAutomaticEx(); ... |
...
Handling is done in the component or client that calls a component through its stub.
Python
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
import SYSTEMErr ... try: ... except SYSTEMErr.AlreadyInAutomaticEx as e: ... ... |
Java
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
import alma.SYSTEMErr.AlreadyInAutomaticEx; ... try { ... } catch (AlreadyInAutomaticEx e) { ... } ... |
C++
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
#include <SYSTEMErr.h> ... try { ... } catch(SYSTEMErr::AlreadyInAutomaticEx &_ex) { ... } ... |