lib/aerospike/aerospike_exception.rb in aerospike-2.12.0 vs lib/aerospike/aerospike_exception.rb in aerospike-2.13.0

- old
+ new

@@ -1,7 +1,7 @@ # encoding: utf-8 -# Copyright 2014-2018 Aerospike, Inc. +# Copyright 2014-2020 Aerospike, Inc. # # Portions may be licensed to Aerospike, Inc. under one or more contributor # license agreements. # # Licensed under the Apache License, Version 2.0 (the "License"); you may not @@ -86,9 +86,15 @@ end class CommandRejected < Aerospike def initialize(msg=nil) super(ResultCode::COMMAND_REJECTED, msg) + end + end + + class InvalidNamespace < Aerospike + def initialize(msg=nil) + super(ResultCode::INVALID_NAMESPACE, msg) end end end end