java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
st.orm.PersistenceException
st.orm.ReadOnlyTransactionException
- All Implemented Interfaces:
Serializable
Thrown when a statement Storm recognises as a write, an
INSERT, UPDATE or DELETE, is
executed inside a read-only transaction.
The statement is refused before a connection is acquired, so the refusal is the same on every database and
driver. The mode is that of the transaction owning the connection: a joined REQUIRED block inside a
read-only transaction is read-only whatever it declares, and a write needs a transaction of its own, opened with
REQUIRES_NEW, or a read-write enclosing transaction. A write in a form Storm does not recognise as one,
such as a stored procedure call, reaches the database, which may refuse it under its own rules.
- Since:
- 1.14
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ReadOnlyTransactionException
-