PyKMIP/kmip/core/exceptions.py
Peter Hamilton a79e9d7f99 Updating support for the Interval primitive
This change updates the Interval primitive, adding a fresh
implementation and documentation. A new unit test suite for the
primitive is included.
2015-09-01 12:36:22 -04:00

38 lines
1.1 KiB
Python

# Copyright (c) 2015 The Johns Hopkins University/Applied Physics Laboratory
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, 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.
class InvalidKmipEncoding(Exception):
"""
An exception raised when processing invalid KMIP message encodings.
"""
pass
class InvalidPaddingBytes(Exception):
"""
An exception raised for errors when processing the padding bytes of
primitive encodings.
"""
pass
class InvalidPrimitiveLength(Exception):
"""
An exception raised for errors when processing primitives with invalid
lengths.
"""
pass