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 Details

  • Constructor Details

    • RexxException

      public RexxException(String message)
      Creates a RexxException with a message.
      Parameters:
      message - error message
    • RexxException

      public RexxException(String message, RexxProxy rexxConditionObject)
      Creates a RexxException with a message, and a RexxProxy allowing to access the Rexx condition object for further inspection.
      Parameters:
      message - error message
      rexxConditionObject - RexxProxy object referring to the Rexx condition object
    • RexxException

      public RexxException(int reason, String message, RexxProxy rexxConditionObject)
      Parameters:
      reason - can be one of the constants defined in BSFException, 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 message
      rexxConditionObject - RexxProxy object referring to the Rexx condition object
  • Method Details

    • getRexxConditionObject

      public RexxProxy getRexxConditionObject()
      Getter method.
      Returns:
      a RexxProxy object referring to the Rexx condition object