Class CannotInsertValueException

  • All Implemented Interfaces:
    Serializable

    public class CannotInsertValueException
    extends SubDocumentException
    Subdocument exception thrown when the provided value cannot be inserted at the given path. It is actually thrown when the delta in an counter operation is valid, but applying that delta would result in an out-of-range number (over Long.MAX_VALUE or under Long.MIN_VALUE).
    Since:
    2.0
    Author:
    Simon Baslé
    See Also:
    Serialized Form
    • Constructor Detail

      • CannotInsertValueException

        public CannotInsertValueException​(String reason)