1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23#ifndef __com_sun_star_script_FailReason_idl__ 24#define __com_sun_star_script_FailReason_idl__ 25 26 27//============================================================================= 28 29 module com { module sun { module star { module script { 30 31//============================================================================= 32 33/** These values specify the reason why a type conversion failed. 34*/ 35published constants FailReason 36{ 37 /** The given value does not fit in the range of the destination type. 38 */ 39 const long OUT_OF_RANGE = 1; 40 41 /** The given value cannot be converted to a number. 42 */ 43 const long IS_NOT_NUMBER = 2; 44 45 /** The given value cannot be converted to an enumeration. 46 */ 47 const long IS_NOT_ENUM = 3; 48 49 /** The given value cannot be converted to a boolean. 50 */ 51 const long IS_NOT_BOOL = 4; 52 53 /** The given value is not an interface or cannot queried to the right interface. 54 */ 55 const long NO_SUCH_INTERFACE = 5; 56 57 /** The given value cannot be converted to right structure or exception type. 58 */ 59 const long SOURCE_IS_NO_DERIVED_TYPE = 6; 60 61 /** The type class of the given value is not supported. 62 */ 63 const long TYPE_NOT_SUPPORTED = 7; 64 65 /** The given value cannot be converted and none of the other reasons match. 66 */ 67 const long INVALID = 8; 68 69 /** This value is deprecated. Do not use. 70 @deprecated 71 */ 72 const long NO_DEFAULT_AVAILABLE = 9; 73 74 /** This value is deprecated. Do not use. 75 @deprecated 76 */ 77 const long UNKNOWN = 10; 78}; 79 80//============================================================================= 81 82}; }; }; }; 83 84/*============================================================================= 85 86=============================================================================*/ 87#endif 88