Beatmup
Beatmup::ChunkIdTooLong Class Reference
Inheritance diagram for Beatmup::ChunkIdTooLong:
Beatmup::Exception

Public Member Functions

 ChunkIdTooLong (const std::string &id)
 
- Public Member Functions inherited from Beatmup::Exception
virtual const char * what () const NOEXCEPT override
 

Static Public Member Functions

static void check (const std::string &id)
 

Additional Inherited Members

- Protected Member Functions inherited from Beatmup::Exception
 Exception (const char *message)
 
template<typename ... Args>
 Exception (const char *message, const Args &... args)
 

Detailed Description

Definition at line 26 of file chunkfile.cpp.

Constructor & Destructor Documentation

◆ ChunkIdTooLong()

Beatmup::ChunkIdTooLong::ChunkIdTooLong ( const std::string &  id)
inline

Definition at line 28 of file chunkfile.cpp.

28  :
29  Exception("Chunk id exceeds max allowed length (255 chars): %s", id.c_str()) {}
Exception(const char *message)
Definition: exception.h:41

Member Function Documentation

◆ check()

static void Beatmup::ChunkIdTooLong::check ( const std::string &  id)
inlinestatic

Definition at line 31 of file chunkfile.cpp.

31  {
32  if (id.size() > 255)
33  throw ChunkIdTooLong(id);
34  }
ChunkIdTooLong(const std::string &id)
Definition: chunkfile.cpp:28
jlong jobject size

The documentation for this class was generated from the following file: