From 91608a334447dca81d64538643667a71c74acd88 Mon Sep 17 00:00:00 2001 From: Kevin Glynn Date: Thu, 28 Apr 2011 11:19:27 +0200 Subject: [PATCH] add InvalidOperationException --- .../System/InvalidOperationException.xml | 80 +++++++++++++++++++ .../System/ObjectDisposedException.xml | 2 +- .../System/InvalidOperationException.java | 46 +++++++++++ .../System/ObjectDisposedException.java | 2 +- 4 files changed, 128 insertions(+), 2 deletions(-) create mode 100644 CS2JLibrary/NetFramework/System/InvalidOperationException.xml create mode 100644 CS2JLibrary/src/CS2JNet/System/InvalidOperationException.java diff --git a/CS2JLibrary/NetFramework/System/InvalidOperationException.xml b/CS2JLibrary/NetFramework/System/InvalidOperationException.xml new file mode 100644 index 0000000..212634b --- /dev/null +++ b/CS2JLibrary/NetFramework/System/InvalidOperationException.xml @@ -0,0 +1,80 @@ + + + + + CS2JNet.System.InvalidOperationException + + InvalidOperationException + System.InvalidOperationException + + + System.Exception + + + + + + + + + CS2JNet.System.InvalidOperationException + + new InvalidOperationException() + + + + + CS2JNet.System.InvalidOperationException + + new InvalidOperationException(${message}) + + + System.String + message + + + + + + CS2JNet.System.InvalidOperationException + + new InvalidOperationException(${info},${ctxt}) + + + System.SerializationInfo + info + + + System.StreamingContext + ctxt + + + + + + CS2JNet.System.InvalidOperationException + + new InvalidOperationException(${message}, ${inner}) + + + System.String + message + + + System.Exception + inner + + + + + + + + +yu2wOTyUyadVCuq3eoz/y2QNoGs=ZdPXY6PcJn6yuDYvUzlFwxVDdR1r5a+dX1bLKQnRZKq7e8TV/K5ObmfbOkAvmqd+eIBWUlUSHbCPMoRlhYW8BQFIYcOf2YvItZLn9QWO1PWlvkNYPVmmofT9OCupVfRAB+ZIL10fi1NvAE65S24UqVpSAuk6qXrOqFvRyvhBQ00= diff --git a/CS2JLibrary/NetFramework/System/ObjectDisposedException.xml b/CS2JLibrary/NetFramework/System/ObjectDisposedException.xml index ecb8634..013f95d 100644 --- a/CS2JLibrary/NetFramework/System/ObjectDisposedException.xml +++ b/CS2JLibrary/NetFramework/System/ObjectDisposedException.xml @@ -14,7 +14,7 @@ System.ObjectDisposedException - System.Exception + System.InvalidOperationException diff --git a/CS2JLibrary/src/CS2JNet/System/InvalidOperationException.java b/CS2JLibrary/src/CS2JNet/System/InvalidOperationException.java new file mode 100644 index 0000000..7296bd1 --- /dev/null +++ b/CS2JLibrary/src/CS2JNet/System/InvalidOperationException.java @@ -0,0 +1,46 @@ +/* + Copyright 2010,2011 Kevin Glynn (kevin.glynn@twigletsoftware.com) + + 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. + + Author(s): + + Kevin Glynn (kevin.glynn@twigletsoftware.com) +*/ + +package CS2JNet.System; + +/** + * @author keving + * + */ +public class InvalidOperationException extends Exception { + + public InvalidOperationException() { + + } + + public InvalidOperationException(String msg) { + super(msg); + } + + public InvalidOperationException(Throwable inner) { + super(inner); + } + + public InvalidOperationException(String msg, Throwable inner) { + super(msg, inner); + } + + +} diff --git a/CS2JLibrary/src/CS2JNet/System/ObjectDisposedException.java b/CS2JLibrary/src/CS2JNet/System/ObjectDisposedException.java index 1832920..0d2ede6 100644 --- a/CS2JLibrary/src/CS2JNet/System/ObjectDisposedException.java +++ b/CS2JLibrary/src/CS2JNet/System/ObjectDisposedException.java @@ -24,7 +24,7 @@ package CS2JNet.System; * @author keving * */ -public class ObjectDisposedException extends Exception { +public class ObjectDisposedException extends InvalidOperationException { public ObjectDisposedException() {