Package org.rexxla.bsf.engines.rexx
Class RexxException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.bsf.BSFException
org.rexxla.bsf.engines.rexx.RexxException
- All Implemented Interfaces:
Serializable
public class RexxException
extends org.apache.bsf.BSFException
This class allows to create an exception which contains a reference to the Rexx
condition object represented as a RexxProxy object, such that Java programs become
able to directly interact with the Rexx condition object.
------------------------ Apache Version 2.0 license -------------------------
Copyright (C) 2009 Rony G. Flatscher
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
----------------------------------------------------------------------------- - Version:
- 1.0.0, 2009-06-08
- Author:
- Rony G. Flatscher (WU Vienna, http://www.wu.ac.at/english)
- See Also:
-
Field Summary
FieldsFields inherited from class org.apache.bsf.BSFException
REASON_EXECUTION_ERROR, REASON_INVALID_ARGUMENT, REASON_IO_ERROR, REASON_OTHER_ERROR, REASON_UNKNOWN_LANGUAGE, REASON_UNSUPPORTED_FEATURE -
Constructor Summary
ConstructorsConstructorDescriptionRexxException(int reason, String message, RexxProxy rexxConditionObject) RexxException(String message) Creates a RexxException with a message.RexxException(String message, RexxProxy rexxConditionObject) Creates a RexxException with a message, and a RexxProxy allowing to access the Rexx condition object for further inspection. -
Method Summary
Methods inherited from class org.apache.bsf.BSFException
getCause, getReason, getTargetException, printStackTraceMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
version
Version information on this class.- See Also:
-
-
Constructor Details
-
RexxException
Creates a RexxException with a message.- Parameters:
message- error message
-
RexxException
Creates a RexxException with a message, and a RexxProxy allowing to access the Rexx condition object for further inspection.- Parameters:
message- error messagerexxConditionObject- RexxProxy object referring to the Rexx condition object
-
RexxException
- Parameters:
reason- can be one of the constants defined inBSFException, values:- 0
- (REASON_INVALID_ARGUMENT),
- 10
- (REASON_IO_ERROR),
- 20
- (REASON_UNKNOWN_LANGUAGE),
- 100
- (REASON_EXECUTION_ERROR),
- 499
- (REASON_UNSUPPORTED_FEATURE),
- 500
- (REASON_OTHER_ERROR).
message- error messagerexxConditionObject- RexxProxy object referring to the Rexx condition object
-
-
Method Details
-
getRexxConditionObject
Getter method.- Returns:
- a RexxProxy object referring to the Rexx condition object
-