1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

add InvalidOperationException

This commit is contained in:
Kevin Glynn 2011-04-28 11:19:27 +02:00
parent c89cd6ae39
commit 91608a3344
4 changed files with 128 additions and 2 deletions

View File

@ -0,0 +1,80 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is
Copyright 2010,2011 Kevin Glynn (kevin.glynn@twigletsoftware.com)
-->
<Class xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:www.twigletsoftware.com:schemas:txtemplate:1:0">
<Imports>
<Import>CS2JNet.System.InvalidOperationException</Import>
</Imports>
<Java>InvalidOperationException</Java>
<Name>System.InvalidOperationException</Name>
<Uses />
<Inherits>
<Type>System.Exception</Type>
</Inherits>
<Methods />
<Properties />
<Events />
<Indexers />
<Constructors>
<Constructor>
<Imports>
<Import>CS2JNet.System.InvalidOperationException</Import>
</Imports>
<Java>new InvalidOperationException()</Java>
<Params />
</Constructor>
<Constructor>
<Imports>
<Import>CS2JNet.System.InvalidOperationException</Import>
</Imports>
<Java>new InvalidOperationException(${message})</Java>
<Params>
<Param>
<Type>System.String</Type>
<Name>message</Name>
</Param>
</Params>
</Constructor>
<Constructor>
<Imports>
<Import>CS2JNet.System.InvalidOperationException</Import>
</Imports>
<Java>new InvalidOperationException(${info},${ctxt})</Java>
<Params>
<Param>
<Type>System.SerializationInfo</Type>
<Name>info</Name>
</Param>
<Param>
<Type>System.StreamingContext</Type>
<Name>ctxt</Name>
</Param>
</Params>
</Constructor>
<Constructor>
<Imports>
<Import>CS2JNet.System.InvalidOperationException</Import>
</Imports>
<Java>new InvalidOperationException(${message}, ${inner})</Java>
<Params>
<Param>
<Type>System.String</Type>
<Name>message</Name>
</Param>
<Param>
<Type>System.Exception</Type>
<Name>inner</Name>
</Param>
</Params>
</Constructor>
</Constructors>
<Fields />
<Casts />
<UnaryOps />
<BinaryOps />
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue>yu2wOTyUyadVCuq3eoz/y2QNoGs=</DigestValue></Reference></SignedInfo><SignatureValue>ZdPXY6PcJn6yuDYvUzlFwxVDdR1r5a+dX1bLKQnRZKq7e8TV/K5ObmfbOkAvmqd+eIBWUlUSHbCPMoRlhYW8BQFIYcOf2YvItZLn9QWO1PWlvkNYPVmmofT9OCupVfRAB+ZIL10fi1NvAE65S24UqVpSAuk6qXrOqFvRyvhBQ00=</SignatureValue></Signature></Class>

View File

@ -14,7 +14,7 @@
<Name>System.ObjectDisposedException</Name>
<Uses />
<Inherits>
<Type>System.Exception</Type>
<Type>System.InvalidOperationException</Type>
</Inherits>
<Methods />
<Properties />

View File

@ -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);
}
}

View File

@ -24,7 +24,7 @@ package CS2JNet.System;
* @author keving
*
*/
public class ObjectDisposedException extends Exception {
public class ObjectDisposedException extends InvalidOperationException {
public ObjectDisposedException() {