Interface ExceptionContextDefaultImpl<T extends Throwable & org.apache.commons.lang3.exception.ExceptionContext>

  • All Superinterfaces:
    org.apache.commons.lang3.exception.ExceptionContext
    All Known Implementing Classes:
    ContextedAssertionError, ContextedStackOverflowError

    public interface ExceptionContextDefaultImpl<T extends Throwable & org.apache.commons.lang3.exception.ExceptionContext>
    extends org.apache.commons.lang3.exception.ExceptionContext
    • Method Detail

      • getExceptionContext

        org.apache.commons.lang3.exception.ExceptionContext getExceptionContext()
      • getThrowable

        T getThrowable()
      • addContextValue

        default T addContextValue​(String label,
                                  Object value)
        Specified by:
        addContextValue in interface org.apache.commons.lang3.exception.ExceptionContext
      • setContextValue

        default org.apache.commons.lang3.exception.ExceptionContext setContextValue​(String label,
                                                                                    Object value)
        Specified by:
        setContextValue in interface org.apache.commons.lang3.exception.ExceptionContext
      • getContextValues

        default List<Object> getContextValues​(String label)
        Specified by:
        getContextValues in interface org.apache.commons.lang3.exception.ExceptionContext
      • getFirstContextValue

        default Object getFirstContextValue​(String label)
        Specified by:
        getFirstContextValue in interface org.apache.commons.lang3.exception.ExceptionContext
      • getContextLabels

        default Set<String> getContextLabels()
        Specified by:
        getContextLabels in interface org.apache.commons.lang3.exception.ExceptionContext
      • getContextEntries

        default List<org.apache.commons.lang3.tuple.Pair<String,​Object>> getContextEntries()
        Specified by:
        getContextEntries in interface org.apache.commons.lang3.exception.ExceptionContext
      • getFormattedExceptionMessage

        default String getFormattedExceptionMessage​(String baseMessage)
        Specified by:
        getFormattedExceptionMessage in interface org.apache.commons.lang3.exception.ExceptionContext