You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by jv...@apache.org on 2013/06/10 23:03:18 UTC

git commit: new exception for encoding problems

Updated Branches:
  refs/heads/trunk 5f296c6aa -> efd141462


new exception for encoding problems


Project: http://git-wip-us.apache.org/repos/asf/mina/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina/commit/efd14146
Tree: http://git-wip-us.apache.org/repos/asf/mina/tree/efd14146
Diff: http://git-wip-us.apache.org/repos/asf/mina/diff/efd14146

Branch: refs/heads/trunk
Commit: efd14146296330eb03b7ff9be24a29e0087a5e78
Parents: 5f296c6
Author: jvermillard <jv...@apache.org>
Authored: Mon Jun 10 23:02:39 2013 +0200
Committer: jvermillard <jv...@apache.org>
Committed: Mon Jun 10 23:02:39 2013 +0200

----------------------------------------------------------------------
 .../mina/codec/ProtocolEncoderException.java    | 45 ++++++++++++++++++++
 1 file changed, 45 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina/blob/efd14146/codec/src/main/java/org/apache/mina/codec/ProtocolEncoderException.java
----------------------------------------------------------------------
diff --git a/codec/src/main/java/org/apache/mina/codec/ProtocolEncoderException.java b/codec/src/main/java/org/apache/mina/codec/ProtocolEncoderException.java
new file mode 100644
index 0000000..00e27e0
--- /dev/null
+++ b/codec/src/main/java/org/apache/mina/codec/ProtocolEncoderException.java
@@ -0,0 +1,45 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you 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.
+ *
+ */
+package org.apache.mina.codec;
+
+/**
+ * Exception thrown by a {@link ProtocolEncoder} if something wrong happen during encoding.
+ * 
+ * @author <a href="http://mina.apache.org">Apache MINA Project</a>
+ */
+@SuppressWarnings("serial")
+public class ProtocolEncoderException extends RuntimeException {
+
+    public ProtocolEncoderException() {
+        super();
+    }
+
+    public ProtocolEncoderException(String message) {
+        super(message);
+    }
+
+    public ProtocolEncoderException(Throwable cause) {
+        super(cause);
+    }
+
+    public ProtocolEncoderException(String message, Throwable cause) {
+        super(message, cause);
+    }
+}
\ No newline at end of file