merged tag ooo/OOO330_m14
[LibreOffice.git] / udkapi / com / sun / star / script / FailReason.idl
bloba8f02fe3a19a539822ebc496daaf1bd0875e3293
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
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.
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).
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.
26 ************************************************************************/
27 #ifndef __com_sun_star_script_FailReason_idl__
28 #define __com_sun_star_script_FailReason_idl__
31 //=============================================================================
33 module com { module sun { module star { module script {
35 //=============================================================================
37 /** These values specify the reason why a type conversion failed.
39 published constants FailReason
41 /** The given value does not fit in the range of the destination type.
43 const long OUT_OF_RANGE = 1;
45 /** The given value cannot be converted to a number.
47 const long IS_NOT_NUMBER = 2;
49 /** The given value cannot be converted to an enumeration.
51 const long IS_NOT_ENUM = 3;
53 /** The given value cannot be converted to a boolean.
55 const long IS_NOT_BOOL = 4;
57 /** The given value is not an interface or cannot queried to the right interface.
59 const long NO_SUCH_INTERFACE = 5;
61 /** The given value cannot be converted to right structure or exception type.
63 const long SOURCE_IS_NO_DERIVED_TYPE = 6;
65 /** The type class of the given value is not supported.
67 const long TYPE_NOT_SUPPORTED = 7;
69 /** The given value cannot be converted and none of the other reasons match.
71 const long INVALID = 8;
73 /** This value is deprecated. Do not use.
74 @deprecated
76 const long NO_DEFAULT_AVAILABLE = 9;
78 /** This value is deprecated. Do not use.
79 @deprecated
81 const long UNKNOWN = 10;
84 //=============================================================================
86 }; }; }; };
88 /*=============================================================================
90 =============================================================================*/
91 #endif