Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8e0e9d7

Browse files
committed
Merge branch 'release/2.1.2'
2 parents 636dabf + 4327cfc commit 8e0e9d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/X12/Parser.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,23 @@ public static function parse ($res) {
2121
$segments = array();
2222

2323
if (!$res) {
24-
throw new Exception('No resource or string passed to parse()');
24+
throw new \Exception('No resource or string passed to parse()');
2525
}
2626

2727
$documents = array();
2828
if (is_resource($res)) {
2929
$res = $data;
3030
$meta = stream_get_meta_data($res);
3131
if (!$meta['seekable']) {
32-
throw new Exception('Stream is not seekable');
32+
throw new \Exception('Stream is not seekable');
3333
}
3434

35-
throw new Exception('Not implemented!');
35+
throw new \Exception('Not implemented!');
3636
} else {
3737
$data = $res;
3838
// treat as string.
3939
if (strcasecmp(substr($data, 0, 3), 'ISA') != 0) {
40-
throw new Exception('ISA segment not found in data stream');
40+
throw new \Exception('ISA segment not found in data stream');
4141
}
4242

4343
$segment_terminator = substr($data, self::SEGMENT_TERMINATOR_POSITION, 1);

0 commit comments

Comments
 (0)