23
23
24
24
import com .orientechnologies .common .collection .OMultiCollectionIterator ;
25
25
import com .orientechnologies .common .collection .OMultiValue ;
26
+ import com .orientechnologies .common .exception .OException ;
26
27
import com .orientechnologies .common .log .OLogManager ;
27
28
import com .orientechnologies .common .log .OLogger ;
28
29
import com .orientechnologies .common .util .OCallable ;
@@ -98,7 +99,7 @@ public static List<OStatement> parseScript(InputStream script, ODatabaseDocument
98
99
List <OStatement > result = osql .parseScript ();
99
100
return result ;
100
101
} catch (ParseException e ) {
101
- throw new OCommandSQLParsingException (e , "" );
102
+ throw OException . wrapException ( new OCommandSQLParsingException (e , "" ), e );
102
103
}
103
104
}
104
105
@@ -109,7 +110,7 @@ public static OOrBlock parsePredicate(String predicate) throws OCommandSQLParsin
109
110
OOrBlock result = osql .OrBlock ();
110
111
return result ;
111
112
} catch (ParseException e ) {
112
- throw new OCommandSQLParsingException (e , "" );
113
+ throw OException . wrapException ( new OCommandSQLParsingException (e , "" ), e );
113
114
}
114
115
}
115
116
@@ -120,7 +121,7 @@ public static OSecurityResourceSegment parseSecurityResource(String exp) {
120
121
OSecurityResourceSegment result = osql .SecurityResourceSegment ();
121
122
return result ;
122
123
} catch (ParseException e ) {
123
- throw new OCommandSQLParsingException (e , "" );
124
+ throw OException . wrapException ( new OCommandSQLParsingException (e , "" ), e );
124
125
}
125
126
}
126
127
0 commit comments