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_script_FailReason_idl__
28#define __com_sun_star_script_FailReason_idl__
29
30
31//=============================================================================
32
33 module com {  module sun {  module star {  module script {
34
35//=============================================================================
36
37/** These values specify the reason why a type conversion failed.
38*/
39published constants FailReason
40{
41	/** The given value does not fit in the range of the destination type.
42    */
43	const long OUT_OF_RANGE = 1;
44
45	/** The given value cannot be converted to a number.
46	*/
47	const long IS_NOT_NUMBER = 2;
48
49	/** The given value cannot be converted to an enumeration.
50	*/
51	const long IS_NOT_ENUM = 3;
52
53	/** The given value cannot be converted to a boolean.
54	*/
55	const long IS_NOT_BOOL = 4;
56
57	/** The given value is not an interface or cannot queried to the right interface.
58	*/
59	const long NO_SUCH_INTERFACE = 5;
60
61	/** The given value cannot be converted to right structure or exception type.
62	*/
63	const long SOURCE_IS_NO_DERIVED_TYPE = 6;
64
65	/** The type class of the given value is not supported.
66	*/
67	const long TYPE_NOT_SUPPORTED = 7;
68
69	/** The given value cannot be converted and none of the other reasons match.
70	*/
71	const long INVALID = 8;
72
73	/** This value is deprecated.  Do not use.
74        @deprecated
75	*/
76	const long NO_DEFAULT_AVAILABLE = 9;
77
78	/** This value is deprecated.  Do not use.
79        @deprecated
80    */
81	const long UNKNOWN = 10;
82};
83
84//=============================================================================
85
86}; }; }; };
87
88/*=============================================================================
89
90=============================================================================*/
91#endif
92