ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkImageFileReaderException.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * https://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18#ifndef itkImageFileReaderException_h
19#define itkImageFileReaderException_h
20#include "ITKIOImageBaseExport.h"
21
22#include "itkMacro.h"
23
24namespace itk
25{
31class ITKIOImageBase_EXPORT ImageFileReaderException : public ExceptionObject
32{
33public:
35
37 itkOverrideGetNameOfClassMacro(ImageFileReaderException);
38
40 ImageFileReaderException(std::string file,
41 unsigned int line,
42 std::string message = "Error in IO",
43 std::string location = {})
44 : ExceptionObject(std::move(file), line, std::move(message), std::move(location))
45 {}
46
48 ~ImageFileReaderException() noexcept override;
49};
50} // namespace itk
51#endif // itkImageFileReaderException_h
Standard exception handling object.
ExceptionObject() noexcept=default
ImageFileReaderException(std::string file, unsigned int line, std::string message="Error in IO", std::string location={})
ITK_DEFAULT_COPY_AND_MOVE(ImageFileReaderException)
~ImageFileReaderException() noexcept override
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
STL namespace.