OpenMS  2.7.0
Public Member Functions | List of all members
FileNameTooLong Class Reference

Filename is too long to be writable/readable by the filesystem. More...

#include <OpenMS/CONCEPT/Exception.h>

Inheritance diagram for FileNameTooLong:
[legend]
Collaboration diagram for FileNameTooLong:
[legend]

Public Member Functions

 FileNameTooLong (const char *file, int line, const char *function, const std::string &filename, int max_length) noexcept
 
- Public Member Functions inherited from BaseException
 BaseException () noexcept
 Default constructor. More...
 
 BaseException (const char *file, int line, const char *function) noexcept
 Constructor. More...
 
 BaseException (const char *file, int line, const char *function, const std::string &name, const std::string &message) noexcept
 Constructor. More...
 
 BaseException (const BaseException &exception) noexcept
 Copy constructor. More...
 
 ~BaseException () noexcept override
 Destructor. More...
 
const char * getName () const noexcept
 Returns the name of the exception. More...
 
int getLine () const noexcept
 Returns the line number where it occurred. More...
 
const char * getFile () const noexcept
 Returns the file where it occurred. More...
 
const char * getFunction () const noexcept
 Returns the function where it occurred. More...
 
const char * getMessage () const noexcept
 Returns the message. More...
 

Additional Inherited Members

- Protected Attributes inherited from BaseException
const char * file_
 The source file the exception was thrown in. More...
 
int line_
 The line number the exception was thrown in. More...
 
const char * function_
 The source file the exception was thrown in. More...
 
std::string name_
 The name of the exception. More...
 

Detailed Description

Filename is too long to be writable/readable by the filesystem.

This exception usually occurs when output filenames are automatically generated and are found to be too long. Usually 255 characters is the limit (NTFS, Ext2/3/4,...).

Constructor & Destructor Documentation

◆ FileNameTooLong()

FileNameTooLong ( const char *  file,
int  line,
const char *  function,
const std::string &  filename,
int  max_length 
)
noexcept