File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -21,23 +21,23 @@ public static function parse ($res) {
21
21
$ segments = array ();
22
22
23
23
if (!$ res ) {
24
- throw new Exception ('No resource or string passed to parse() ' );
24
+ throw new \ Exception ('No resource or string passed to parse() ' );
25
25
}
26
26
27
27
$ documents = array ();
28
28
if (is_resource ($ res )) {
29
29
$ res = $ data ;
30
30
$ meta = stream_get_meta_data ($ res );
31
31
if (!$ meta ['seekable ' ]) {
32
- throw new Exception ('Stream is not seekable ' );
32
+ throw new \ Exception ('Stream is not seekable ' );
33
33
}
34
34
35
- throw new Exception ('Not implemented! ' );
35
+ throw new \ Exception ('Not implemented! ' );
36
36
} else {
37
37
$ data = $ res ;
38
38
// treat as string.
39
39
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 ' );
41
41
}
42
42
43
43
$ segment_terminator = substr ($ data , self ::SEGMENT_TERMINATOR_POSITION , 1 );
You can’t perform that action at this time.
0 commit comments