Creates an assertion error with the provided unityId and optional message.
unityId
message
UnknownUnityIDError(this.unityId, [this.message]);