Skip to content

Commit 8d99f66

Browse files
authored
Update ReedSolomonDecoder.php
Fix exception use error.
1 parent a75482d commit 8d99f66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Common/Reedsolomon/ReedSolomonDecoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private function runEuclideanAlgorithm($a, $b, $R)
132132
$t = $q->multiply($tLast)->addOrSubtract($tLastLast);
133133

134134
if ($r->getDegree() >= $rLast->getDegree()) {
135-
throw new IllegalStateException("Division algorithm failed to reduce polynomial?");
135+
throw new ReedSolomonException("Division algorithm failed to reduce polynomial?");
136136
}
137137
}
138138

0 commit comments

Comments
 (0)