backport 3e58708130: Add some missing @throws annotations

This commit is contained in:
Dylan K. Taylor
2019-01-30 19:41:20 +00:00
parent 93cb9390e0
commit 20af789963
5 changed files with 10 additions and 3 deletions

View File

@ -83,6 +83,9 @@ class RegionLoader{
$this->filePath = $filePath;
}
/**
* @throws CorruptedRegionException
*/
public function open(){
$exists = file_exists($this->filePath);
if(!$exists){
@ -263,6 +266,9 @@ class RegionLoader{
}
}
/**
* @throws CorruptedRegionException
*/
protected function loadLocationTable(){
fseek($this->filePointer, 0);
$this->lastSector = 1;