aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src/hicn/transport/errors
diff options
context:
space:
mode:
Diffstat (limited to 'libtransport/src/hicn/transport/errors')
-rw-r--r--libtransport/src/hicn/transport/errors/CMakeLists.txt31
-rw-r--r--libtransport/src/hicn/transport/errors/errors.h24
-rw-r--r--libtransport/src/hicn/transport/errors/indexing_exception.h31
-rw-r--r--libtransport/src/hicn/transport/errors/invalid_ip_address_exception.h31
-rw-r--r--libtransport/src/hicn/transport/errors/malformed_ahpacket_exception.h31
-rw-r--r--libtransport/src/hicn/transport/errors/malformed_name_exception.h31
-rw-r--r--libtransport/src/hicn/transport/errors/malformed_packet_exception.h29
-rw-r--r--libtransport/src/hicn/transport/errors/not_implemented_exception.h30
-rw-r--r--libtransport/src/hicn/transport/errors/null_pointer_exception.h31
-rw-r--r--libtransport/src/hicn/transport/errors/runtime_exception.h32
-rw-r--r--libtransport/src/hicn/transport/errors/tokenizer_exception.h31
-rw-r--r--libtransport/src/hicn/transport/errors/unexpected_manifest_exception.h31
12 files changed, 0 insertions, 363 deletions
diff --git a/libtransport/src/hicn/transport/errors/CMakeLists.txt b/libtransport/src/hicn/transport/errors/CMakeLists.txt
deleted file mode 100644
index 7b0d1332d..000000000
--- a/libtransport/src/hicn/transport/errors/CMakeLists.txt
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright (c) 2017-2019 Cisco and/or its affiliates.
-# 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.
-
-cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
-
-list(APPEND HEADER_FILES
- ${CMAKE_CURRENT_SOURCE_DIR}/not_implemented_exception.h
- ${CMAKE_CURRENT_SOURCE_DIR}/invalid_ip_address_exception.h
- ${CMAKE_CURRENT_SOURCE_DIR}/malformed_name_exception.h
- ${CMAKE_CURRENT_SOURCE_DIR}/errors.h
- ${CMAKE_CURRENT_SOURCE_DIR}/malformed_packet_exception.h
- ${CMAKE_CURRENT_SOURCE_DIR}/runtime_exception.h
- ${CMAKE_CURRENT_SOURCE_DIR}/tokenizer_exception.h
- ${CMAKE_CURRENT_SOURCE_DIR}/null_pointer_exception.h
- ${CMAKE_CURRENT_SOURCE_DIR}/malformed_ahpacket_exception.h
- ${CMAKE_CURRENT_SOURCE_DIR}/unexpected_manifest_exception.h
- ${CMAKE_CURRENT_SOURCE_DIR}/indexing_exception.h
-)
-
-set(SOURCE_FILES ${SOURCE_FILES} PARENT_SCOPE)
-set(HEADER_FILES ${HEADER_FILES} PARENT_SCOPE) \ No newline at end of file
diff --git a/libtransport/src/hicn/transport/errors/errors.h b/libtransport/src/hicn/transport/errors/errors.h
deleted file mode 100644
index 512e35736..000000000
--- a/libtransport/src/hicn/transport/errors/errors.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * Copyright (c) 2017-2019 Cisco and/or its affiliates.
- * 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.
- */
-
-#pragma once
-
-#include <hicn/transport/errors/invalid_ip_address_exception.h>
-#include <hicn/transport/errors/malformed_name_exception.h>
-#include <hicn/transport/errors/malformed_packet_exception.h>
-#include <hicn/transport/errors/not_implemented_exception.h>
-#include <hicn/transport/errors/null_pointer_exception.h>
-#include <hicn/transport/errors/runtime_exception.h>
-#include <hicn/transport/errors/tokenizer_exception.h> \ No newline at end of file
diff --git a/libtransport/src/hicn/transport/errors/indexing_exception.h b/libtransport/src/hicn/transport/errors/indexing_exception.h
deleted file mode 100644
index 731314f0e..000000000
--- a/libtransport/src/hicn/transport/errors/indexing_exception.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2017-2019 Cisco and/or its affiliates.
- * 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.
- */
-
-#pragma once
-
-#include <stdexcept>
-
-namespace errors {
-
-class IndexingException : public std::logic_error {
- public:
- IndexingException() : std::logic_error("") {}
-
- virtual char const *what() const noexcept override {
- return "Impossible to retrieve next index to download.";
- }
-};
-
-} // end namespace errors
diff --git a/libtransport/src/hicn/transport/errors/invalid_ip_address_exception.h b/libtransport/src/hicn/transport/errors/invalid_ip_address_exception.h
deleted file mode 100644
index 60226f576..000000000
--- a/libtransport/src/hicn/transport/errors/invalid_ip_address_exception.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2017-2019 Cisco and/or its affiliates.
- * 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.
- */
-
-#pragma once
-
-#include <stdexcept>
-
-namespace errors {
-
-class InvalidIpAddressException : public std::runtime_error {
- public:
- InvalidIpAddressException() : std::runtime_error("") {}
-
- virtual char const *what() const noexcept override {
- return "Malformed IP address.";
- }
-};
-
-} // end namespace errors \ No newline at end of file
diff --git a/libtransport/src/hicn/transport/errors/malformed_ahpacket_exception.h b/libtransport/src/hicn/transport/errors/malformed_ahpacket_exception.h
deleted file mode 100644
index f0cfe0b82..000000000
--- a/libtransport/src/hicn/transport/errors/malformed_ahpacket_exception.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2017-2019 Cisco and/or its affiliates.
- * 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.
- */
-
-#pragma once
-
-#include <stdexcept>
-
-namespace errors {
-
-class MalformedAHPacketException : public std::runtime_error {
- public:
- MalformedAHPacketException() : std::runtime_error("") {}
-
- virtual char const *what() const noexcept override {
- return "Malformed AH packet.";
- }
-};
-
-} // end namespace errors
diff --git a/libtransport/src/hicn/transport/errors/malformed_name_exception.h b/libtransport/src/hicn/transport/errors/malformed_name_exception.h
deleted file mode 100644
index 4ef45d2e8..000000000
--- a/libtransport/src/hicn/transport/errors/malformed_name_exception.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2017-2019 Cisco and/or its affiliates.
- * 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.
- */
-
-#pragma once
-
-#include <stdexcept>
-
-namespace errors {
-
-class MalformedNameException : public std::runtime_error {
- public:
- MalformedNameException() : std::runtime_error("") {}
-
- virtual char const *what() const noexcept override {
- return "Malformed IP address.";
- }
-};
-
-} // end namespace errors
diff --git a/libtransport/src/hicn/transport/errors/malformed_packet_exception.h b/libtransport/src/hicn/transport/errors/malformed_packet_exception.h
deleted file mode 100644
index ec5c97e6e..000000000
--- a/libtransport/src/hicn/transport/errors/malformed_packet_exception.h
+++ /dev/null
@@ -1,29 +0,0 @@
-/*
- * Copyright (c) 2017-2019 Cisco and/or its affiliates.
- * 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.
- */
-
-#pragma once
-
-#include <stdexcept>
-
-namespace errors {
-
-class MalformedPacketException : public std::runtime_error {
- public:
- MalformedPacketException() : std::runtime_error("") {}
-
- char const *what() const noexcept override { return "Malformed IP packet."; }
-};
-
-} // end namespace errors
diff --git a/libtransport/src/hicn/transport/errors/not_implemented_exception.h b/libtransport/src/hicn/transport/errors/not_implemented_exception.h
deleted file mode 100644
index e9869163d..000000000
--- a/libtransport/src/hicn/transport/errors/not_implemented_exception.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright (c) 2017-2019 Cisco and/or its affiliates.
- * 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.
- */
-
-#pragma once
-
-#include <stdexcept>
-
-namespace errors {
-
-class NotImplementedException : public std::logic_error {
- public:
- NotImplementedException() : std::logic_error("") {}
- virtual char const *what() const noexcept override {
- return "Function not yet implemented.";
- }
-};
-
-} // end namespace errors
diff --git a/libtransport/src/hicn/transport/errors/null_pointer_exception.h b/libtransport/src/hicn/transport/errors/null_pointer_exception.h
deleted file mode 100644
index bd06485ed..000000000
--- a/libtransport/src/hicn/transport/errors/null_pointer_exception.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2017-2019 Cisco and/or its affiliates.
- * 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.
- */
-
-#pragma once
-
-#include <stdexcept>
-
-namespace errors {
-
-class NullPointerException : public std::runtime_error {
- public:
- NullPointerException() : std::runtime_error("") {}
-
- char const *what() const noexcept override {
- return "Null pointer exception.";
- }
-};
-
-} // end namespace errors
diff --git a/libtransport/src/hicn/transport/errors/runtime_exception.h b/libtransport/src/hicn/transport/errors/runtime_exception.h
deleted file mode 100644
index ba5128a7e..000000000
--- a/libtransport/src/hicn/transport/errors/runtime_exception.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (c) 2017-2019 Cisco and/or its affiliates.
- * 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.
- */
-
-#pragma once
-
-#include <iostream>
-#include <sstream>
-#include <stdexcept>
-#include <string>
-
-namespace errors {
-
-class RuntimeException : public std::runtime_error {
- public:
- RuntimeException() : std::runtime_error("") {}
-
- RuntimeException(std::string what) : runtime_error(what){};
-};
-
-} // end namespace errors \ No newline at end of file
diff --git a/libtransport/src/hicn/transport/errors/tokenizer_exception.h b/libtransport/src/hicn/transport/errors/tokenizer_exception.h
deleted file mode 100644
index 76eda838e..000000000
--- a/libtransport/src/hicn/transport/errors/tokenizer_exception.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2017-2019 Cisco and/or its affiliates.
- * 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.
- */
-
-#pragma once
-
-#include <stdexcept>
-
-namespace errors {
-
-class TokenizerException : public std::logic_error {
- public:
- TokenizerException() : std::logic_error("") {}
-
- virtual char const *what() const noexcept override {
- return "No more tokens available.";
- }
-};
-
-} // end namespace errors
diff --git a/libtransport/src/hicn/transport/errors/unexpected_manifest_exception.h b/libtransport/src/hicn/transport/errors/unexpected_manifest_exception.h
deleted file mode 100644
index 6f71471e4..000000000
--- a/libtransport/src/hicn/transport/errors/unexpected_manifest_exception.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright (c) 2017-2019 Cisco and/or its affiliates.
- * 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.
- */
-
-#pragma once
-
-#include <stdexcept>
-
-namespace errors {
-
-class UnexpectedManifestException : public std::logic_error {
- public:
- UnexpectedManifestException() : std::logic_error("") {}
-
- virtual char const *what() const noexcept override {
- return "Received unexpected manifest.";
- }
-};
-
-} // end namespace errors