类 ErrorMessage

    • 构造器详细资料

      • ErrorMessage

        public ErrorMessage​(Throwable payload)
        Create a new message with the given payload.
        参数:
        payload - the message payload (never null)
      • ErrorMessage

        public ErrorMessage​(Throwable payload,
                            Map<String,​Object> headers)
        Create a new message with the given payload and headers. The content of the given header map is copied.
        参数:
        payload - the message payload (never null)
        headers - message headers to use for initialization
      • ErrorMessage

        public ErrorMessage​(Throwable payload,
                            MessageHeaders headers)
        A constructor with the MessageHeaders instance to use.

        Note: the given MessageHeaders instance is used directly in the new message, i.e. it is not copied.

        参数:
        payload - the message payload (never null)
        headers - message headers