Class MutableExceptionContext

    • Constructor Detail

      • MutableExceptionContext

        public MutableExceptionContext()
    • Method Detail

      • put

        public MutableExceptionContext put​(String key,
                                           String value)
        Puts a new key-value pair into the properties of this context.
        Parameters:
        key - property key
        value - property value
        Returns:
        this context
        Throws:
        IllegalStateException - if this context already contains a specified key
      • asMap

        public Map<String,​Object> asMap()
        Returns properties of this context as a map.
        Specified by:
        asMap in interface ExceptionContext
        Returns:
        an immutable map containing properties of this context