[pal-cvs 2349] [83] added common exception

Zurück zum Archiv-Index

svnno****@sourc***** svnno****@sourc*****
2007年 4月 25日 (水) 21:59:08 JST


Revision: 83
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=pal&view=rev&rev=83
Author:   shinsuke
Date:     2007-04-25 21:59:08 +0900 (Wed, 25 Apr 2007)

Log Message:
-----------
added common exception

Added Paths:
-----------
    libraries/common-utils/trunk/src/main/java/jp/sf/pal/common/CommonException.java


-------------- next part --------------
Added: libraries/common-utils/trunk/src/main/java/jp/sf/pal/common/CommonException.java
===================================================================
--- libraries/common-utils/trunk/src/main/java/jp/sf/pal/common/CommonException.java	2007-04-25 12:58:38 UTC (rev 82)
+++ libraries/common-utils/trunk/src/main/java/jp/sf/pal/common/CommonException.java	2007-04-25 12:59:08 UTC (rev 83)
@@ -0,0 +1,67 @@
+/*
+ * 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 jp.sf.pal.common;
+
+/**
+ * @author shinsuke
+ * 
+ */
+public class CommonException extends Exception {
+
+    /**
+     * Serial Version UID
+     */
+    private static final long serialVersionUID = 4564000116499132363L;
+
+    private String messageId;
+
+    /**
+     * @return Returns the messageId.
+     */
+    public String getMessageId() {
+        return messageId;
+    }
+
+    /**
+     * @param messageId
+     *            The messageId to set.
+     */
+    public void setMessageId(String messageId) {
+        this.messageId = messageId;
+    }
+
+    public CommonException(String messageId) {
+        super();
+        this.messageId = messageId;
+    }
+
+    public CommonException(String messageId, String message, Throwable cause) {
+        super(message, cause);
+        this.messageId = messageId;
+    }
+
+    public CommonException(String messageId, String message) {
+        super(message);
+        this.messageId = messageId;
+    }
+
+    public CommonException(String messageId, Throwable cause) {
+        super(cause);
+        this.messageId = messageId;
+    }
+
+}


Property changes on: libraries/common-utils/trunk/src/main/java/jp/sf/pal/common/CommonException.java
___________________________________________________________________
Name: svn:eol-style
   + native


pal-cvs メーリングリストの案内
Zurück zum Archiv-Index