Commit c9abff80 authored by Nicolas Bailliet's avatar Nicolas Bailliet
Browse files

Bad practice on exceptions raised during mock recording fixed

parent 9ac62366
Pipeline #272658 passed with stages
in 11 minutes and 48 seconds
......@@ -62,7 +62,7 @@ class DAOTransaction {
}
}
} catch (Exception e) {
throw new MessageException("An error occurred while recording the request message");
throw new MessageException("An error occurred while recording the request message : " + e.getMessage());
}
}
......@@ -94,7 +94,7 @@ class DAOTransaction {
}
}
} catch (Exception e) {
throw new MessageException("An error occurred while recording the response message");
throw new MessageException("An error occurred while recording the response message : " + e.getMessage());
}
}
......@@ -128,7 +128,7 @@ class DAOTransaction {
}
} catch (Exception e) {
throw new MessageException("An error occurred while recording the transaction");
throw new MessageException("An error occurred while recording the transaction" + e.getMessage());
}
}
......
......@@ -28,8 +28,7 @@ public class MessageRecorder {
dbConnection.close();
} catch (Exception e) {
throw new MessageException("An error occurred while inserting the transaction");
throw new MessageException("An error occurred while inserting the transaction : " + e.getMessage());
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment