esbtools / esb-message-admin

GNU General Public License v3.0
5 stars 9 forks source link

Validate required fields and fail gracefully if they're not present #152

Open derek63 opened 8 years ago

derek63 commented 8 years ago

Instead of waiting for NullPointerExceptions to occur, like when you don't specify a payload.

alechenninger commented 8 years ago

I think we should actually just not require a payload for the case where we are sending a message to EMA precisely because it does not have a payload. It may still have headers which can be used to track its origin, therefore it's still useful to have messages that have no payloads.