require("cipherstash-pg") unless defined? CipherStashPG module CipherStashPG class Error < StandardError def initialize(msg = nil, connection: nil, result: nil) @connection = connection @result = result super(msg) end end class NotAllCopyDataRetrieved < CipherStashPG::Error end class LostCopyState < CipherStashPG::Error end class NotInBlockingMode < CipherStashPG::Error end end