Overriding a function call with a J# java.lang.Exception parameter in C#

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Bryan

    Overriding a function call with a J# java.lang.Exception parameter in C#

    Hi,

    I am writing a windows app in C# and referencing a lib built in J# and which
    I don't have the code for that requires a method to be overridden that
    contains a parameter defined as:

    java.lang.Excep tion

    I tried specifying the .net Exception class instead, but then I got an error
    message saying that my class did not define the the interface method.

    Does anyone have any suggestions as to how to specify a java.lang.Excep tion
    class in C#? Do I need a reference? Tried looking, but could not find
    anything.

    I'm stuck... Any suggestions welcome.

    Bob


  • Bob Bryan

    #2
    Re: Overriding a function call with a J# java.lang.Excep tion parameter in C#

    After using the object browser, I discovered that there is a .net referenece
    that provides access to the java.lang.Excep tion class. Adding a reference
    to vjslib solved the problem.

    "Bob Bryan" <RobertGBryanRE MOVETHIS@yahoo. comwrote in message
    news:TZmPj.1407 5$CO2.6948@news fe12.phx...
    Hi,
    >
    I am writing a windows app in C# and referencing a lib built in J# and
    which I don't have the code for that requires a method to be overridden
    that contains a parameter defined as:
    >
    java.lang.Excep tion
    >
    I tried specifying the .net Exception class instead, but then I got an
    error message saying that my class did not define the the interface
    method.
    >
    Does anyone have any suggestions as to how to specify a
    java.lang.Excep tion class in C#? Do I need a reference? Tried looking,
    but could not find anything.
    >
    I'm stuck... Any suggestions welcome.
    >
    Bob
    >

    Comment

    Working...