Skip to content

adding more exeptions #98

@staxfur

Description

@staxfur

cpp-terminal is currently not checking that much for legal inputs on some functions. For example: Term::Window_24bit scr(0, 0, 10, 10); returns a segmentation fault, because the used vectors of the window class can't have negative places. we should simply throw a std::runtime_error here. That would include:

  • Term::Window
  • Term::Window_24bit
  • (with some functions, like Term::Window::fill_bg)
  • Term::color
  • Term::color_24bit
    and probably all other functions without enforced types (like enums)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

To do

Relationships

None yet

Development

No branches or pull requests

Issue actions