-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added custom exceptions to REST API in order to be used by ETSI OSM vimconn
- Loading branch information
Showing
3 changed files
with
42 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright (c) 2014,2018 Contributors to the Eclipse Foundation | ||
# | ||
# See the NOTICE file(s) distributed with this work for additional | ||
# information regarding copyright ownership. | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Eclipse Public License 2.0 which is available at | ||
# http://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0 | ||
# which is available at https://www.apache.org/licenses/LICENSE-2.0. | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 | ||
# | ||
# Contributors: Gabriele Baldoni, ADLINK Technology Inc. - API v2 | ||
|
||
|
||
|
||
class FIMAuthExcetpion(Exception): | ||
def __init__(self, message): | ||
super(FIMAuthExcetpion, self).__init__(message) | ||
|
||
|
||
class FIMAResouceExistingException(Exception): | ||
def __init__(self, message): | ||
super(FIMAResouceExistingException, self).__init__(message) | ||
|
||
|
||
class FIMNotFoundException(Exception): | ||
def __init__(self, message): | ||
super(FIMNotFoundException, self).__init__(message) | ||
|
||
|
||
class FIMTaskFailedException(Exception): | ||
def __init__(self, message): | ||
super(FIMTaskFailedException, self).__init__(message) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters