blob: 1c3f010598b40427c6efaa0daa37226c6416ea45 [file] [log] [blame]
/*******************************************************************************
* Copyright © 2012, 2013 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*
*******************************************************************************/
package eglx.lang;
/**
* InvalidArgumentExceptions are thrown to indicate that an argument to a function
* or constructor is invalid for some reason.
*/
record InvalidArgumentException type Exception
end
/**
* InvalidIndexExceptions are thrown when a subscript or substring index is
* out of bounds.
*/
record InvalidIndexException type Exception
/**
* The invalid index.
*/
index int;
end
/**
* A NullValueException is thrown because of an attempt to get the value of a
* null reference.
*/
record NullValueException type Exception
end
/**
* When a value can't be converted to a particular type, a TypeCastException is thrown.
*/
record TypeCastException type Exception
/**
* The name of the type to which conversion was attempted.
*/
castToName string;
/**
* Names the type of the value.
*/
actualTypeName string;
end
/**
* A DynamicAccessException is thrown when dynamic access fails to find the specified field.
*/
record DynamicAccessException type Exception
/**
* The name of the nonexistant field.
*/
key string;
end
/**
* InvalidPatternExceptions are thrown when a malformed pattern is used while
* formatting, parsing, or pattern matching with a string.
*/
record InvalidPatternException type Exception
/**
* The invalid pattern.
*/
pattern string;
end
/**
* When a call of a program or delegate fails, an InvocationException is thrown.
*/
record InvocationException type Exception
/**
* The name of the called program or delegated function.
*/
name string;
/**
* The return code of the called program. Zero if there was no return code.
*/
returnValue int;
end
/**
* This indicates a numeric overflow: a number is too large to be stored in the
* place where it was used.
*/
record NumericOverflowException type Exception
end