aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/commons/lang3/exception/ContextedException.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/commons/lang3/exception/ContextedException.java')
-rw-r--r--src/org/apache/commons/lang3/exception/ContextedException.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/org/apache/commons/lang3/exception/ContextedException.java b/src/org/apache/commons/lang3/exception/ContextedException.java
index a910024..ac20580 100644
--- a/src/org/apache/commons/lang3/exception/ContextedException.java
+++ b/src/org/apache/commons/lang3/exception/ContextedException.java
@@ -5,9 +5,9 @@
* 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.
@@ -77,7 +77,7 @@ import org.apache.commons.lang3.tuple.Pair;
* ..... (rest of trace)
* </pre>
* </p>
- *
+ *
* @see ContextedRuntimeException
* @since 3.0
*/
@@ -102,7 +102,7 @@ public class ContextedException extends Exception implements ExceptionContext {
* Instantiates ContextedException with message, but without cause.
* <p>
* The context information is stored using a default implementation.
- *
+ *
* @param message the exception message, may be null
*/
public ContextedException(String message) {
@@ -114,7 +114,7 @@ public class ContextedException extends Exception implements ExceptionContext {
* Instantiates ContextedException with cause, but without message.
* <p>
* The context information is stored using a default implementation.
- *
+ *
* @param cause the underlying cause of the exception, may be null
*/
public ContextedException(Throwable cause) {
@@ -126,7 +126,7 @@ public class ContextedException extends Exception implements ExceptionContext {
* Instantiates ContextedException with cause and message.
* <p>
* The context information is stored using a default implementation.
- *
+ *
* @param message the exception message, may be null
* @param cause the underlying cause of the exception, may be null
*/
@@ -137,7 +137,7 @@ public class ContextedException extends Exception implements ExceptionContext {
/**
* Instantiates ContextedException with cause, message, and ExceptionContext.
- *
+ *
* @param message the exception message, may be null
* @param cause the underlying cause of the exception, may be null
* @param context the context used to store the additional information, null uses default implementation
@@ -159,12 +159,12 @@ public class ContextedException extends Exception implements ExceptionContext {
* <p>
* Note: This exception is only serializable if the object added is serializable.
* </p>
- *
+ *
* @param label a textual label associated with information, {@code null} not recommended
* @param value information needed to understand exception, may be {@code null}
* @return {@code this}, for method chaining, not {@code null}
*/
- public ContextedException addContextValue(String label, Object value) {
+ public ContextedException addContextValue(String label, Object value) {
exceptionContext.addContextValue(label, value);
return this;
}
@@ -177,12 +177,12 @@ public class ContextedException extends Exception implements ExceptionContext {
* <p>
* Note: This exception is only serializable if the object added as value is serializable.
* </p>
- *
+ *
* @param label a textual label associated with information, {@code null} not recommended
* @param value information needed to understand exception, may be {@code null}
* @return {@code this}, for method chaining, not {@code null}
*/
- public ContextedException setContextValue(String label, Object value) {
+ public ContextedException setContextValue(String label, Object value) {
exceptionContext.setContextValue(label, value);
return this;
}
@@ -217,7 +217,7 @@ public class ContextedException extends Exception implements ExceptionContext {
/**
* Provides the message explaining the exception, including the contextual data.
- *
+ *
* @see java.lang.Throwable#getMessage()
* @return the message, never null
*/
@@ -228,7 +228,7 @@ public class ContextedException extends Exception implements ExceptionContext {
/**
* Provides the message explaining the exception without the contextual data.
- *
+ *
* @see java.lang.Throwable#getMessage()
* @return the message
* @since 3.0.1