lib/qpid_proton/exceptions.rb in qpid_proton-0.8 vs lib/qpid_proton/exceptions.rb in qpid_proton-0.9.0
- old
+ new
@@ -1,6 +1,6 @@
-#
+#--
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
@@ -13,15 +13,15 @@
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
-#
+#++
-module Qpid
+module Qpid # :nodoc:
- module Proton
+ module Proton # :nodoc:
module Error
NONE = 0
EOS = Cproton::PN_EOS
@@ -57,9 +57,15 @@
end
# Represents an invalid, missing or illegal argument while messaging.
#
class ArgumentError < ProtonError
+ end
+
+ # Represents that the client has got into an unexpected state during
+ # messaging.
+ #
+ class StateError < ProtonError
end
# Represents a timeout during messaging.
#
class TimeoutError < ProtonError