1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: FailReason.idl,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_script_FailReason_idl__
31 #define __com_sun_star_script_FailReason_idl__
34 //=============================================================================
36 module com
{ module sun
{ module star
{ module script
{
38 //=============================================================================
40 /** These values specify the reason why a type conversion failed.
42 published constants FailReason
44 /** The given value does not fit in the range of the destination type.
46 const long OUT_OF_RANGE
= 1;
48 /** The given value cannot be converted to a number.
50 const long IS_NOT_NUMBER
= 2;
52 /** The given value cannot be converted to an enumeration.
54 const long IS_NOT_ENUM
= 3;
56 /** The given value cannot be converted to a boolean.
58 const long IS_NOT_BOOL
= 4;
60 /** The given value is not an interface or cannot queried to the right interface.
62 const long NO_SUCH_INTERFACE
= 5;
64 /** The given value cannot be converted to right structure or exception type.
66 const long SOURCE_IS_NO_DERIVED_TYPE
= 6;
68 /** The type class of the given value is not supported.
70 const long TYPE_NOT_SUPPORTED
= 7;
72 /** The given value cannot be converted and none of the other reasons match.
74 const long INVALID
= 8;
76 /** This value is deprecated. Do not use.
79 const long NO_DEFAULT_AVAILABLE
= 9;
81 /** This value is deprecated. Do not use.
84 const long UNKNOWN
= 10;
87 //=============================================================================
91 /*=============================================================================
93 =============================================================================*/