LibreOffice Module cli_ure (master) 1
Public Member Functions | Properties | Private Attributes | List of all members
uno.ExceptionAttribute Class Reference

is used to mark a UNO method to throw exceptions. More...

Inheritance diagram for uno.ExceptionAttribute:
[legend]
Collaboration diagram for uno.ExceptionAttribute:
[legend]

Public Member Functions

 ExceptionAttribute (Type[] raises)
 initializes an instance with the specified values. More...
 

Properties

Type[] Raises [get]
 

Private Attributes

Type[] m_raises
 

Detailed Description

is used to mark a UNO method to throw exceptions.

A method can be an ordinary interface method, a get or set method from an interface attribute, or the constructor methods of service creator classes. If there are no exceptions specified for a method then this attribute should not be applied. Because a <type scope="com.sun.star.uno">RuntimeException</type> can always be thrown it is not specified. Hence no ExceptionAttribute should be applied in that case.

Definition at line 36 of file ExceptionAttribute.cs.

Constructor & Destructor Documentation

◆ ExceptionAttribute()

uno.ExceptionAttribute.ExceptionAttribute ( Type[]  raises)
inline

initializes an instance with the specified values.

Parameters
raisesarray of types of Exceptions which are declared in UNOIDL. It must not be null.

Definition at line 44 of file ExceptionAttribute.cs.

References uno.ExceptionAttribute.m_raises.

Member Data Documentation

◆ m_raises

Type [] uno.ExceptionAttribute.m_raises
private

Definition at line 57 of file ExceptionAttribute.cs.

Referenced by uno.ExceptionAttribute.ExceptionAttribute().

Property Documentation

◆ Raises

Type [] uno.ExceptionAttribute.Raises
get

Definition at line 49 of file ExceptionAttribute.cs.


The documentation for this class was generated from the following file: