TANGO Java API
( TangORB-7.3.3.jar)

fr.esrf.TangoDs
Class Except

java.lang.Object
  extended by fr.esrf.TangoDs.Except
All Implemented Interfaces:
TangoConst, java.io.Serializable

public class Except
extends java.lang.Object
implements TangoConst, java.io.Serializable

Container class for all exception related methods. Most of these methods are static methods

Version:
$Revision: 1.8 $
Author:
$Author: pascal_verdier $ // // Copyright (C) : 2004,2005,2006,2007,2008,2009 // European Synchrotron Radiation Facility // BP 220, Grenoble 38043 // FRANCE // // This file is part of Tango. // // Tango is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Tango is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU Lesser General Public License for more details. // // You should have received a copy of the GNU Lesser General Public License // along with Tango. If not, see . //
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface fr.esrf.TangoDs.TangoConst
ACCESS_READ, ACCESS_SERVICE, ACCESS_WRITE, ARCHIVE_EVENT, ATT_CONF_EVENT, Attr_AdmName, Attr_Description, Attr_Name, Attr_State, Attr_Status, Attr_Unknown, ATTRIBUTE, BY_CLASS, BY_DEVICE, BY_PROCESS, CHANGE_EVENT, COMMAND, CONTROL_SYSTEM, DATA_READY_EVENT, DEFAULT_LOCK_VALIDITY, eventNames, LOGGING_CONSOLE_TARGET, LOGGING_CONSOLE_TARGET_ID, LOGGING_DEBUG, LOGGING_DEF_RFT, LOGGING_DEVICE_TARGET, LOGGING_DEVICE_TARGET_ID, LOGGING_ERROR, LOGGING_FATAL, LOGGING_FILE_TARGET, LOGGING_FILE_TARGET_ID, LOGGING_INFO, LOGGING_LEVELS, LOGGING_MAX_RFT, LOGGING_MIN_RFT, LOGGING_OFF, LOGGING_SEPARATOR, LOGGING_UNKNOWN_TARGET_ID, LOGGING_WARN, NO_SYNC, NOT_STATELESS, NotANumber, Op_BlackBox, Op_Command, Op_Command_2, Op_Command_inout, Op_Command_inout_2, Op_Command_inout_history_2, Op_Command_list, Op_Command_list_2, Op_Get_Attr_Config, Op_Get_Attr_Config_2, Op_Info, Op_Ping, Op_Read_Attr, Op_Read_Attr_2, Op_Read_Attr_history_2, Op_Set_Attr_Config, Op_Unknown, Op_Write_Attr, PERIODIC_EVENT, QUALITY_EVENT, Req_Attribute, Req_Operation, Req_Unknown, SERVICE_PROP_NAME, STATELESS, Tango_AllAttr, Tango_AllAttr_3, Tango_AlrmValueNotSpec, Tango_AssocWritNotSpec, Tango_AttrDataFormatName, Tango_CLNT_TIMEOUT, Tango_CmdArgTypeName, Tango_CONST_DEV_STRING, Tango_DbObjName, Tango_DEFAULT_POLL_OLD_FACTOR, Tango_DEFAULT_TIMEOUT, Tango_DEFAULT_TIMEOUT_SEC, Tango_DefaultBlackBoxDepth, Tango_DefaultDocUrl, Tango_DefaultPollRingDepth, Tango_DefaultWritableProp, Tango_DELTA_T, Tango_DescNotSet, Tango_DescNotSpec, Tango_DEV_BOOLEAN, Tango_DEV_CHAR, Tango_DEV_DOUBLE, Tango_DEV_ENCODED, Tango_DEV_FLOAT, Tango_DEV_INT, Tango_DEV_LONG, Tango_DEV_LONG64, Tango_DEV_SHORT, Tango_DEV_STATE, Tango_DEV_STRING, Tango_DEV_UCHAR, Tango_DEV_ULONG, Tango_DEV_ULONG64, Tango_DEV_USHORT, Tango_DEV_VOID, Tango_DevStateName, Tango_DEVVAR_CHARARRAY, Tango_DEVVAR_DOUBLEARRAY, Tango_DEVVAR_DOUBLESTRINGARRAY, Tango_DEVVAR_FLOATARRAY, Tango_DEVVAR_LONG64ARRAY, Tango_DEVVAR_LONGARRAY, Tango_DEVVAR_LONGSTRINGARRAY, Tango_DEVVAR_SHORTARRAY, Tango_DEVVAR_STRINGARRAY, Tango_DEVVAR_ULONG64ARRAY, Tango_DEVVAR_ULONGARRAY, Tango_DEVVAR_USHORTARRAY, Tango_DevVersion, Tango_DISCARD_THRESHOLD, Tango_DispUnitNotSpec, Tango_DSDeviceDomain, Tango_EXPERT_ATTR, Tango_EXPERT_CMD, Tango_FormatNotSpec, Tango_InitialOutput, Tango_LabelNotSpec, TANGO_LOG_PATH, Tango_MAX_TRANSFER_SIZE, Tango_MaxServerNameLength, Tango_MIN_POLL_PERIOD, Tango_OPERATOR_ATTR, Tango_OPERATOR_CMD, Tango_POLL_ADD_OBJ, Tango_POLL_ATTR, Tango_POLL_CMD, Tango_POLL_REM_DEV, Tango_POLL_REM_OBJ, Tango_POLL_START, Tango_POLL_STOP, Tango_POLL_UPD_PERIOD, Tango_PollAttribute, Tango_PollCommand, Tango_QualityName, Tango_REL_1, Tango_REL_2, Tango_ResNotDefined, Tango_StdUnitNotSpec, Tango_SysProperty, Tango_TG_IMP_MINOR_DEVFAILED, Tango_TG_IMP_MINOR_NON_DEVFAILED, Tango_TG_IMP_MINOR_TO, Tango_TgLibVers, Tango_UnitNotSpec, USER_EVENT
 
Constructor Summary
Except()
           
 
Method Summary
static java.lang.String print_CORBA_SystemException(org.omg.CORBA.SystemException ex)
          Create a string from a CORBA excepition
static void print_exception_stack(java.lang.Exception ex)
          Print a TANGO exception with stack.
static void print_exception(DevError[] errors)
          Print a TANGO exception.
static void print_exception(java.lang.Exception ex)
          Print a TANGO exception.
static void re_throw_exception(DevFailed ex, java.lang.String reason, java.lang.String desc, java.lang.String origin)
          Re-throw a TANGO DevFailed exception with one more error.
static void re_throw_exception(DevFailed ex, java.lang.String reason, java.lang.String desc, java.lang.String origin, ErrSeverity sever)
          Re-throw a TANGO DevFailed exception with one more error.
static java.lang.String str_exception(java.lang.Exception except)
          This method, like print_exception method.
static void throw_asyn_reply_not_arrived(DevFailed df, java.lang.String reason, java.lang.String desc, java.lang.String origin)
          Re-throw a AsynReplyNotArrived exception.
static void throw_asyn_reply_not_arrived(DevFailed df, java.lang.String reason, java.lang.String desc, java.lang.String origin, ErrSeverity severity)
          re-throw a DevFailed in a AsynReplyNotArrived exception.
static void throw_asyn_reply_not_arrived(java.lang.String reason, java.lang.String desc, java.lang.String origin)
          Throw a AsynReplyNotArrived exception.
static void throw_asyn_reply_not_arrived(java.lang.String reason, java.lang.String desc, java.lang.String origin, ErrSeverity severity)
          Throw a AsynReplyNotArrived exception.
static void throw_communication_failed(DevFailed df, java.lang.String reason, java.lang.String desc, java.lang.String origin)
          Re-throw a CommunicationFailed exception.
static void throw_communication_failed(DevFailed df, java.lang.String reason, java.lang.String desc, java.lang.String origin, ErrSeverity severity)
          re-throw a DevFailed in a CommunicationFailed exception.
static void throw_communication_failed(java.lang.String reason, java.lang.String desc, java.lang.String origin)
          Throw a CommunicationFailed exception.
static void throw_communication_failed(java.lang.String reason, java.lang.String desc, java.lang.String origin, ErrSeverity severity)
          Throw a CommunicationFailed exception.
static void throw_communication_timeout(DevFailed df, java.lang.String reason, java.lang.String desc, java.lang.String origin, ErrSeverity severity)
          re-throw a DevFailed in a CommunicationTimeout exception.
static void throw_communication_timeout(java.lang.String reason, java.lang.String desc, java.lang.String origin)
          Throw a CommunicationTimeout exception.
static void throw_connection_failed(DevFailed df, java.lang.String reason, java.lang.String desc, java.lang.String origin)
          Re-throw a ConnectionFailed exception.
static void throw_connection_failed(DevFailed df, java.lang.String reason, java.lang.String desc, java.lang.String origin, ErrSeverity severity)
          re-throw a DevFailed in a ConnectionFailed exception.
static void throw_connection_failed(java.lang.String reason, java.lang.String desc, java.lang.String origin)
          Throw a ConnectionFailed exception.
static void throw_connection_failed(java.lang.String reason, java.lang.String desc, java.lang.String origin, ErrSeverity severity)
          Throw a ConnectionFailed exception.
static void throw_event_system_failed(DevFailed df, java.lang.String reason, java.lang.String desc, java.lang.String origin)
          Re-throw a EventSystemFailed exception.
static void throw_event_system_failed(DevFailed df, java.lang.String reason, java.lang.String desc, java.lang.String origin, ErrSeverity severity)
          re-throw a DevFailed in a EventSystemFailed exception.
static void throw_event_system_failed(java.lang.String reason, java.lang.String desc, java.lang.String origin)
          Throw a EventSystemFailed exception.
static void throw_event_system_failed(java.lang.String reason, java.lang.String desc, java.lang.String origin, ErrSeverity severity)
          Throw a EventSystemFailed exception.
static void throw_exception(java.lang.String reason, java.lang.String desc, java.lang.String origin)
          Generate and throw a TANGO DevFailed exception.
static void throw_exception(java.lang.String reason, java.lang.String desc, java.lang.String origin, ErrSeverity sever)
          Generate and throw a TANGO DevFailed exception.
static void throw_exception(org.omg.CORBA.SystemException ex, java.lang.String origin)
          Generate and throw a TANGO DevFailed exception from a CORBA exception.
static void throw_non_db_exception(DevFailed df, java.lang.String reason, java.lang.String desc, java.lang.String origin)
          Re-throw a NonDbDevice exception.
static void throw_non_db_exception(DevFailed df, java.lang.String reason, java.lang.String desc, java.lang.String origin, ErrSeverity severity)
          re-throw a DevFailed in a NonDbDevice exception.
static void throw_non_db_exception(java.lang.String reason, java.lang.String desc, java.lang.String origin)
          Throw a NonDbDevice exception.
static void throw_non_db_exception(java.lang.String reason, java.lang.String desc, java.lang.String origin, ErrSeverity severity)
          Throw a NonDbDevice exception.
static void throw_non_supported_exception(DevFailed df, java.lang.String reason, java.lang.String desc, java.lang.String origin)
          Re-throw a NonSupportedFeature exception.
static void throw_non_supported_exception(DevFailed df, java.lang.String reason, java.lang.String desc, java.lang.String origin, ErrSeverity severity)
          re-throw a DevFailed in a NonSupportedFeature exception.
static void throw_non_supported_exception(java.lang.String reason, java.lang.String desc, java.lang.String origin)
          Throw a NonSupportedFeature exception.
static void throw_non_supported_exception(java.lang.String reason, java.lang.String desc, java.lang.String origin, ErrSeverity severity)
          Throw a NonSupportedFeature exception.
static void throw_wrong_data_exception(DevFailed df, java.lang.String reason, java.lang.String desc, java.lang.String origin)
          Re-throw a WrongData exception.
static void throw_wrong_data_exception(DevFailed df, java.lang.String reason, java.lang.String desc, java.lang.String origin, ErrSeverity severity)
          re-throw a DevFailed in a WrongData exception.
static void throw_wrong_data_exception(java.lang.String reason, java.lang.String desc, java.lang.String origin)
          Throw a WrongData exception.
static void throw_wrong_data_exception(java.lang.String reason, java.lang.String desc, java.lang.String origin, ErrSeverity severity)
          Throw a WrongData exception.
static void throw_wrong_syntax_exception(DevFailed df, java.lang.String reason, java.lang.String desc, java.lang.String origin)
          Re-throw a WrongNameSyntax exception.
static void throw_wrong_syntax_exception(DevFailed df, java.lang.String reason, java.lang.String desc, java.lang.String origin, ErrSeverity severity)
          re-throw a DevFailed in a WrongNameSyntax exception.
static void throw_wrong_syntax_exception(java.lang.String reason, java.lang.String desc, java.lang.String origin)
          Throw a WrongNameSyntax exception.
static void throw_wrong_syntax_exception(java.lang.String reason, java.lang.String desc, java.lang.String origin, ErrSeverity severity)
          Throw a WrongNameSyntax exception.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Except

public Except()
Method Detail

str_exception

public static java.lang.String str_exception(java.lang.Exception except)
This method, like print_exception method. It builds a string with exception argumet but returns this string.


print_exception

public static void print_exception(DevError[] errors)
Print a TANGO exception. Print all the details of a TANGO exception. If the exception is not a TANGO DevFailed exception, it only print the stack.

Parameters:
errors - errors array

print_exception

public static void print_exception(java.lang.Exception ex)
Print a TANGO exception. Print all the details of a TANGO exception. If the exception is not a TANGO DevFailed exception, it only print the stack.

Parameters:
ex - The exception object reference

print_exception_stack

public static void print_exception_stack(java.lang.Exception ex)
Print a TANGO exception with stack. Print all the details of a TANGO exception. It also prints the stack when the exception occurs. If the exception is not a TANGO DevFailed exception, it only print the stack.

Parameters:
ex - The exception object reference

throw_exception

public static void throw_exception(java.lang.String reason,
                                   java.lang.String desc,
                                   java.lang.String origin)
                            throws DevFailed
Generate and throw a TANGO DevFailed exception. The exception is created with a single DevError object. The DevError severity field is set to ERR Click here to read DevFailed exception specification

Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
Throws:
DevFailed - The thrown exception. Click here to read DevFailed exception specification

throw_exception

public static void throw_exception(java.lang.String reason,
                                   java.lang.String desc,
                                   java.lang.String origin,
                                   ErrSeverity sever)
                            throws DevFailed
Generate and throw a TANGO DevFailed exception. The exception is created with a single DevError object. Click here to read DevFailed exception specification

Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field
Throws:
DevFailed - The thrown exception. Click here to read DevFailed exception specification

re_throw_exception

public static void re_throw_exception(DevFailed ex,
                                      java.lang.String reason,
                                      java.lang.String desc,
                                      java.lang.String origin)
                               throws DevFailed
Re-throw a TANGO DevFailed exception with one more error. The exception is re-thrown with one more DevError object. The new DevError severity field is set to ERR Click here to read DevFailed exception specification

Parameters:
ex - The DevFailed exception
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
Throws:
DevFailed - The thrown exception. Click here to read DevFailed exception specification

re_throw_exception

public static void re_throw_exception(DevFailed ex,
                                      java.lang.String reason,
                                      java.lang.String desc,
                                      java.lang.String origin,
                                      ErrSeverity sever)
                               throws DevFailed
Re-throw a TANGO DevFailed exception with one more error. The exception is re-rhrown with one more DevError object. Click here to read DevFailed exception specification

Parameters:
ex - The DevFailed exception
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
sever - The exception DevError object severity field
Throws:
DevFailed - The thrown exception. Click here to read DevFailed exception specification

throw_exception

public static void throw_exception(org.omg.CORBA.SystemException ex,
                                   java.lang.String origin)
                            throws DevFailed
Generate and throw a TANGO DevFailed exception from a CORBA exception. The exception is created with a single DevError object. A value ERR is defined for the DevError severity field. Click here to read DevFailed exception specification

Parameters:
ex - A CORBA System Exception. The reason and desc fields of the DevError object will be set according to the data in this exception. The reason field is always set to API_CorbaSysException and the reason flag is different depending on the exact type of the CORBA system exception.
origin - The exception DevError object origin field
Throws:
DevFailed - The thrown exception. Click here to read DevFailed exception specification

print_CORBA_SystemException

public static java.lang.String print_CORBA_SystemException(org.omg.CORBA.SystemException ex)
Create a string from a CORBA excepition

Parameters:
ex - The CORBA exception

throw_connection_failed

public static void throw_connection_failed(java.lang.String reason,
                                           java.lang.String desc,
                                           java.lang.String origin)
                                    throws ConnectionFailed
Throw a ConnectionFailed exception.

Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
Throws:
ConnectionFailed - The client exception.

throw_connection_failed

public static void throw_connection_failed(DevFailed df,
                                           java.lang.String reason,
                                           java.lang.String desc,
                                           java.lang.String origin)
                                    throws ConnectionFailed
Re-throw a ConnectionFailed exception.

Parameters:
df - A DevFailed exception to be rethrown.
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
Throws:
ConnectionFailed - The client exception.

throw_connection_failed

public static void throw_connection_failed(java.lang.String reason,
                                           java.lang.String desc,
                                           java.lang.String origin,
                                           ErrSeverity severity)
                                    throws ConnectionFailed
Throw a ConnectionFailed exception.

Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
severity - The exception DevError object severity field
Throws:
ConnectionFailed - The client exception.

throw_connection_failed

public static void throw_connection_failed(DevFailed df,
                                           java.lang.String reason,
                                           java.lang.String desc,
                                           java.lang.String origin,
                                           ErrSeverity severity)
                                    throws ConnectionFailed
re-throw a DevFailed in a ConnectionFailed exception.

Parameters:
df - A DevFailed exception to be rethrown.
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
severity - The exception DevError object severity field
Throws:
ConnectionFailed - The client exception.

throw_communication_failed

public static void throw_communication_failed(java.lang.String reason,
                                              java.lang.String desc,
                                              java.lang.String origin)
                                       throws CommunicationFailed
Throw a CommunicationFailed exception.

Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
Throws:
CommunicationFailed - The client exception.

throw_communication_failed

public static void throw_communication_failed(DevFailed df,
                                              java.lang.String reason,
                                              java.lang.String desc,
                                              java.lang.String origin)
                                       throws CommunicationFailed
Re-throw a CommunicationFailed exception.

Parameters:
df - A DevFailed exception to be rethrown.
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
Throws:
CommunicationFailed - The client exception.

throw_communication_timeout

public static void throw_communication_timeout(java.lang.String reason,
                                               java.lang.String desc,
                                               java.lang.String origin)
                                        throws CommunicationTimeout
Throw a CommunicationTimeout exception.

Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
Throws:
CommunicationTimeout - The client exception.

throw_communication_failed

public static void throw_communication_failed(java.lang.String reason,
                                              java.lang.String desc,
                                              java.lang.String origin,
                                              ErrSeverity severity)
                                       throws CommunicationFailed
Throw a CommunicationFailed exception.

Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
severity - The exception DevError object severity field
Throws:
CommunicationFailed - The client exception.

throw_communication_failed

public static void throw_communication_failed(DevFailed df,
                                              java.lang.String reason,
                                              java.lang.String desc,
                                              java.lang.String origin,
                                              ErrSeverity severity)
                                       throws CommunicationFailed
re-throw a DevFailed in a CommunicationFailed exception.

Parameters:
df - A DevFailed exception to be rethrown.
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
severity - The exception DevError object severity field
Throws:
CommunicationFailed - The client exception.

throw_communication_timeout

public static void throw_communication_timeout(DevFailed df,
                                               java.lang.String reason,
                                               java.lang.String desc,
                                               java.lang.String origin,
                                               ErrSeverity severity)
                                        throws CommunicationTimeout
re-throw a DevFailed in a CommunicationTimeout exception.

Parameters:
df - A DevFailed exception to be rethrown.
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
severity - The exception DevError object severity field
Throws:
CommunicationTimeout - The client exception.

throw_wrong_syntax_exception

public static void throw_wrong_syntax_exception(java.lang.String reason,
                                                java.lang.String desc,
                                                java.lang.String origin)
                                         throws WrongNameSyntax
Throw a WrongNameSyntax exception.

Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
Throws:
WrongNameSyntax - The client exception.

throw_wrong_syntax_exception

public static void throw_wrong_syntax_exception(DevFailed df,
                                                java.lang.String reason,
                                                java.lang.String desc,
                                                java.lang.String origin)
                                         throws WrongNameSyntax
Re-throw a WrongNameSyntax exception.

Parameters:
df - A DevFailed exception to be rethrown.
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
Throws:
WrongNameSyntax - The client exception.

throw_wrong_syntax_exception

public static void throw_wrong_syntax_exception(java.lang.String reason,
                                                java.lang.String desc,
                                                java.lang.String origin,
                                                ErrSeverity severity)
                                         throws WrongNameSyntax
Throw a WrongNameSyntax exception.

Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
severity - The exception DevError object severity field
Throws:
WrongNameSyntax - The client exception.

throw_wrong_syntax_exception

public static void throw_wrong_syntax_exception(DevFailed df,
                                                java.lang.String reason,
                                                java.lang.String desc,
                                                java.lang.String origin,
                                                ErrSeverity severity)
                                         throws WrongNameSyntax
re-throw a DevFailed in a WrongNameSyntax exception.

Parameters:
df - A DevFailed exception to be rethrown.
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
severity - The exception DevError object severity field
Throws:
WrongNameSyntax - The client exception.

throw_wrong_data_exception

public static void throw_wrong_data_exception(java.lang.String reason,
                                              java.lang.String desc,
                                              java.lang.String origin)
                                       throws WrongData
Throw a WrongData exception.

Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
Throws:
WrongData - The client exception.

throw_wrong_data_exception

public static void throw_wrong_data_exception(DevFailed df,
                                              java.lang.String reason,
                                              java.lang.String desc,
                                              java.lang.String origin)
                                       throws WrongData
Re-throw a WrongData exception.

Parameters:
df - A DevFailed exception to be rethrown.
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
Throws:
WrongData - The client exception.

throw_wrong_data_exception

public static void throw_wrong_data_exception(java.lang.String reason,
                                              java.lang.String desc,
                                              java.lang.String origin,
                                              ErrSeverity severity)
                                       throws WrongData
Throw a WrongData exception.

Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
severity - The exception DevError object severity field
Throws:
WrongData - The client exception.

throw_wrong_data_exception

public static void throw_wrong_data_exception(DevFailed df,
                                              java.lang.String reason,
                                              java.lang.String desc,
                                              java.lang.String origin,
                                              ErrSeverity severity)
                                       throws WrongData
re-throw a DevFailed in a WrongData exception.

Parameters:
df - A DevFailed exception to be rethrown.
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
severity - The exception DevError object severity field
Throws:
WrongData - The client exception.

throw_non_db_exception

public static void throw_non_db_exception(java.lang.String reason,
                                          java.lang.String desc,
                                          java.lang.String origin)
                                   throws NonDbDevice
Throw a NonDbDevice exception.

Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
Throws:
NonDbDevice - The client exception.

throw_non_db_exception

public static void throw_non_db_exception(DevFailed df,
                                          java.lang.String reason,
                                          java.lang.String desc,
                                          java.lang.String origin)
                                   throws NonDbDevice
Re-throw a NonDbDevice exception.

Parameters:
df - A DevFailed exception to be rethrown.
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
Throws:
NonDbDevice - The client exception.

throw_non_db_exception

public static void throw_non_db_exception(java.lang.String reason,
                                          java.lang.String desc,
                                          java.lang.String origin,
                                          ErrSeverity severity)
                                   throws NonDbDevice
Throw a NonDbDevice exception.

Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
severity - The exception DevError object severity field
Throws:
NonDbDevice - The client exception.

throw_non_db_exception

public static void throw_non_db_exception(DevFailed df,
                                          java.lang.String reason,
                                          java.lang.String desc,
                                          java.lang.String origin,
                                          ErrSeverity severity)
                                   throws NonDbDevice
re-throw a DevFailed in a NonDbDevice exception.

Parameters:
df - A DevFailed exception to be rethrown.
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
severity - The exception DevError object severity field
Throws:
NonDbDevice - The client exception.

throw_non_supported_exception

public static void throw_non_supported_exception(java.lang.String reason,
                                                 java.lang.String desc,
                                                 java.lang.String origin)
                                          throws NonSupportedFeature
Throw a NonSupportedFeature exception.

Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
Throws:
NonSupportedFeature - The client exception.

throw_non_supported_exception

public static void throw_non_supported_exception(DevFailed df,
                                                 java.lang.String reason,
                                                 java.lang.String desc,
                                                 java.lang.String origin)
                                          throws NonSupportedFeature
Re-throw a NonSupportedFeature exception.

Parameters:
df - A DevFailed exception to be rethrown.
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
Throws:
NonSupportedFeature - The client exception.

throw_non_supported_exception

public static void throw_non_supported_exception(java.lang.String reason,
                                                 java.lang.String desc,
                                                 java.lang.String origin,
                                                 ErrSeverity severity)
                                          throws NonSupportedFeature
Throw a NonSupportedFeature exception.

Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
severity - The exception DevError object severity field
Throws:
NonSupportedFeature - The client exception.

throw_non_supported_exception

public static void throw_non_supported_exception(DevFailed df,
                                                 java.lang.String reason,
                                                 java.lang.String desc,
                                                 java.lang.String origin,
                                                 ErrSeverity severity)
                                          throws NonSupportedFeature
re-throw a DevFailed in a NonSupportedFeature exception.

Parameters:
df - A DevFailed exception to be rethrown.
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
severity - The exception DevError object severity field
Throws:
NonSupportedFeature - The client exception.

throw_asyn_reply_not_arrived

public static void throw_asyn_reply_not_arrived(java.lang.String reason,
                                                java.lang.String desc,
                                                java.lang.String origin)
                                         throws AsynReplyNotArrived
Throw a AsynReplyNotArrived exception.

Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
Throws:
AsynReplyNotArrived - The client exception.

throw_asyn_reply_not_arrived

public static void throw_asyn_reply_not_arrived(DevFailed df,
                                                java.lang.String reason,
                                                java.lang.String desc,
                                                java.lang.String origin)
                                         throws AsynReplyNotArrived
Re-throw a AsynReplyNotArrived exception.

Parameters:
df - A DevFailed exception to be rethrown.
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
Throws:
AsynReplyNotArrived - The client exception.

throw_asyn_reply_not_arrived

public static void throw_asyn_reply_not_arrived(java.lang.String reason,
                                                java.lang.String desc,
                                                java.lang.String origin,
                                                ErrSeverity severity)
                                         throws AsynReplyNotArrived
Throw a AsynReplyNotArrived exception.

Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
severity - The exception DevError object severity field
Throws:
AsynReplyNotArrived - The client exception.

throw_asyn_reply_not_arrived

public static void throw_asyn_reply_not_arrived(DevFailed df,
                                                java.lang.String reason,
                                                java.lang.String desc,
                                                java.lang.String origin,
                                                ErrSeverity severity)
                                         throws AsynReplyNotArrived
re-throw a DevFailed in a AsynReplyNotArrived exception.

Parameters:
df - A DevFailed exception to be rethrown.
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
severity - The exception DevError object severity field
Throws:
AsynReplyNotArrived - The client exception.

throw_event_system_failed

public static void throw_event_system_failed(java.lang.String reason,
                                             java.lang.String desc,
                                             java.lang.String origin)
                                      throws EventSystemFailed
Throw a EventSystemFailed exception.

Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
Throws:
EventSystemFailed - The client exception.

throw_event_system_failed

public static void throw_event_system_failed(DevFailed df,
                                             java.lang.String reason,
                                             java.lang.String desc,
                                             java.lang.String origin)
                                      throws EventSystemFailed
Re-throw a EventSystemFailed exception.

Parameters:
df - A DevFailed exception to be rethrown.
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
Throws:
EventSystemFailed - The client exception.

throw_event_system_failed

public static void throw_event_system_failed(java.lang.String reason,
                                             java.lang.String desc,
                                             java.lang.String origin,
                                             ErrSeverity severity)
                                      throws EventSystemFailed
Throw a EventSystemFailed exception.

Parameters:
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
severity - The exception DevError object severity field
Throws:
EventSystemFailed - The client exception.

throw_event_system_failed

public static void throw_event_system_failed(DevFailed df,
                                             java.lang.String reason,
                                             java.lang.String desc,
                                             java.lang.String origin,
                                             ErrSeverity severity)
                                      throws EventSystemFailed
re-throw a DevFailed in a EventSystemFailed exception.

Parameters:
df - A DevFailed exception to be rethrown.
reason - The exception DevError object reason field
desc - The exception DevError object desc field
origin - The exception DevError object origin field
severity - The exception DevError object severity field
Throws:
EventSystemFailed - The client exception.

TANGO Java API
( TangORB-7.3.3.jar)