Use more appropriate exceptions in the protocol layer

This commit is contained in:
Dylan K. Taylor
2019-01-03 17:57:06 +00:00
parent 504cc3bf8b
commit 0f941410f6
7 changed files with 21 additions and 8 deletions

View File

@ -109,7 +109,7 @@ class BookEditPacket extends DataPacket{
$this->putString($this->xuid);
break;
default:
throw new \UnexpectedValueException("Unknown book edit type $this->type!");
throw new \InvalidArgumentException("Unknown book edit type $this->type!");
}
}