Mercurial > SimpleWebPresenter
comparison InputParser.inc @ 126:7858ceb293d1
A bit more verbosity in errors.
| author | Tom Fredrik Blenning <bfg@bfgconsult.no> |
|---|---|
| date | Wed, 28 Dec 2022 01:04:22 +0100 |
| parents | 6766250a0baa |
| children | ee5f98a0bc93 |
comparison
equal
deleted
inserted
replaced
| 125:ee939079b8b6 | 126:7858ceb293d1 |
|---|---|
| 143 foreach ($param->childNodes as $param) { | 143 foreach ($param->childNodes as $param) { |
| 144 if ($param->nodeType == XML_ELEMENT_NODE) { | 144 if ($param->nodeType == XML_ELEMENT_NODE) { |
| 145 array_push($param_value, self::getParam($param)); | 145 array_push($param_value, self::getParam($param)); |
| 146 } | 146 } |
| 147 } | 147 } |
| 148 } | |
| 149 else { | |
| 150 throw new UnexpectedValueException("Unknown parameter type '$param_type'"); | |
| 148 } | 151 } |
| 149 return $param_value; | 152 return $param_value; |
| 150 } | 153 } |
| 151 | 154 |
| 152 /** | 155 /** |
