You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by si...@apache.org on 2011/09/23 15:58:24 UTC
svn commit: r1174768 -
/labs/openelo/src/main/java/org/apache/openelo/EloException.java
Author: simonetripodi
Date: Fri Sep 23 13:58:24 2011
New Revision: 1174768
URL: http://svn.apache.org/viewvc?rev=1174768&view=rev
Log:
first checkin of EloException root exception
Added:
labs/openelo/src/main/java/org/apache/openelo/EloException.java (with props)
Added: labs/openelo/src/main/java/org/apache/openelo/EloException.java
URL: http://svn.apache.org/viewvc/labs/openelo/src/main/java/org/apache/openelo/EloException.java?rev=1174768&view=auto
==============================================================================
--- labs/openelo/src/main/java/org/apache/openelo/EloException.java (added)
+++ labs/openelo/src/main/java/org/apache/openelo/EloException.java Fri Sep 23 13:58:24 2011
@@ -0,0 +1,69 @@
+package org.apache.openelo;
+
+/*
+ * 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.
+ */
+
+import static java.lang.String.format;
+
+/**
+ * A generic ELO rating system exception.
+ */
+public final class EloException
+ extends RuntimeException
+{
+
+ /**
+ * The typical serial version UID.
+ */
+ private static final long serialVersionUID = 8117225012111972131L;
+
+ /**
+ * Create a new exception with the specified message text.
+ *
+ * @param messagePattern The error message text pattern
+ * @param arguments Arguments referenced by the format specifiers in the format string
+ * @see String#format(String, Object...)
+ */
+ public EloException( String messagePattern, Object...args )
+ {
+ this( format( messagePattern, args ), (Throwable) null );
+ }
+
+ /**
+ * Constructs a new exception with the specified cause.
+ *
+ * @param cause the cause.
+ */
+ public EloException( Throwable cause )
+ {
+ super( cause );
+ }
+
+ /**
+ * Constructs a new exception with the specified detail message and cause.
+ *
+ * @param message the detail message.
+ * @param cause the cause.
+ */
+ public EloException( String message, Throwable cause )
+ {
+ super( message, cause );
+ }
+
+}
Propchange: labs/openelo/src/main/java/org/apache/openelo/EloException.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: labs/openelo/src/main/java/org/apache/openelo/EloException.java
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL
Propchange: labs/openelo/src/main/java/org/apache/openelo/EloException.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org