Class ExceptionMessageHelper
- java.lang.Object
-
- org.apache.bookkeeper.common.util.ExceptionMessageHelper
-
public class ExceptionMessageHelper extends java.lang.Object
Utility to make it easier to add context to exception messages.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.StringBuilder
sb
-
Constructor Summary
Constructors Constructor Description ExceptionMessageHelper(java.lang.String msg)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExceptionMessageHelper
exMsg(java.lang.String msg)
ExceptionMessageHelper
kv(java.lang.String key, java.lang.Object value)
java.lang.String
toString()
-
-
-
Method Detail
-
exMsg
public static ExceptionMessageHelper exMsg(java.lang.String msg)
-
kv
public ExceptionMessageHelper kv(java.lang.String key, java.lang.Object value)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-