In my tests I need to test what happens when an OracleException is thrown (due to a stored procedure failure). I am trying to setup Rhino Mocks to
Expect.Call(....).Throw(new OracleException());
For whatever reason however, OracleException seems to be sealed with no public constructor. What can I do to test this?
Edit: Here is exactly what I'm trying to instantiate:
public sealed class OracleException : DbException {
private OracleException(string message, int code) { ...}
}