Same suggestion as for `locationError`, I'd create a PostMessageException type and throw that one directly.