Skip to content

Commit

Permalink
Relpace throwable with exception
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedSabthar committed Oct 11, 2024
1 parent 455d1bc commit d204863
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ private OutParameterProcessor() {
public static Object getOutParameterValue(BObject result, BTypedesc typeDesc) {
try {
CallProcessor.populateOutParameter(result);
} catch (Throwable e) {
} catch (SQLException | ApplicationError e) {
return ErrorGenerator.getSQLError(e, "Failed to read OUT parameter value.");
}

Expand All @@ -74,7 +74,7 @@ public static Object getOutParameterValue(BObject result, BTypedesc typeDesc) {
public static BStream getOutCursorValue(BObject result, BTypedesc typeDesc) {
try {
CallProcessor.populateOutParameter(result);
} catch (Throwable e) {
} catch (SQLException | ApplicationError e) {
return getErrorStream(typeDesc,
ErrorGenerator.getSQLError(e, "Failed to read parameter value."));
}
Expand All @@ -84,7 +84,7 @@ public static BStream getOutCursorValue(BObject result, BTypedesc typeDesc) {
public static Object getInOutParameterValue(BObject result, BTypedesc typeDesc) {
try {
CallProcessor.populateOutParameter(result);
} catch (Throwable e) {
} catch (SQLException | ApplicationError e) {
return ErrorGenerator.getSQLError(e, "Failed to read INOUT parameter value.");
}
return get(result, typeDesc, DefaultResultParameterProcessor.getInstance(), "InOutParameter");
Expand Down

0 comments on commit d204863

Please sign in to comment.