1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27#ifndef __com_sun_star_beans_TolerantPropertySetResultType_idl__
28#define __com_sun_star_beans_TolerantPropertySetResultType_idl__
29
30
31//=============================================================================
32
33module com {  module sun {  module star {  module beans {
34
35//=============================================================================
36
37/** specifies the possible failure types when using the
38    <type scope="com::sun::star::beans">XTolerantMultiPropertySet</type>
39    interface.
40
41    <p>It usually matches one of the exception types that may occur when
42    using the
43    <type scope="com::sun::star::beans">XPropertySet</type> or
44    <type scope="com::sun::star::beans">XMultiPropertySet</type> interfaces.</p>
45*/
46constants TolerantPropertySetResultType
47{
48    /** the property has been successfully set or retrieved.
49    */
50    const short SUCCESS             = 0;
51
52    /** the property is not available.
53
54        <p>For example if a
55        <type scope="com::sun::star::beans" >UnknownPropertyException</type>
56        was catched.</p>
57    */
58    const short UNKNOWN_PROPERTY    = 1;
59
60    /** the value used with the property is not valid.
61
62        <p>For example if a
63        <type scope="com::sun::star::lang" >IllegalArgumentException</type>
64        was catched.</p>
65    */
66    const short ILLEGAL_ARGUMENT    = 2;
67
68    /** the property could not be changed at that time.
69
70        <p>For example if a
71        <type scope="com::sun::star::beans" >PropertyVetoException</type>
72        was catched.</p>
73    */
74    const short PROPERTY_VETO       = 3;
75
76    /** a <type scope="com::sun::star::lang">WrappedTargetException</type>
77        did occur.
78    */
79    const short WRAPPED_TARGET      = 4;
80
81    /** the operation failed and the reason is not known.
82    */
83    const short UNKNOWN_FAILURE     = 5;
84};
85
86//=============================================================================
87
88}; }; }; };
89
90#endif
91