Namespaces
Variants

Standard library header <stdexcept>

From cppreference.net
Standard library headers

이 헤더는 error handling 라이브러리의 일부입니다.

목차

클래스

논리적 전제 조건이나 클래스 불변식을 위반했음을 나타내는 예외 클래스
(클래스)
잘못된 인수를 보고하는 예외 클래스
(클래스)
정의역 오류를 보고하는 예외 클래스
(클래스)
허용된 최대 크기를 초과하려는 시도를 보고하는 예외 클래스
(클래스)
예상 범위를 벗어난 인수를 보고하는 예외 클래스
(클래스)
런타임에서만 감지 가능한 조건을 나타내는 예외 클래스
(클래스)
내부 계산에서 범위 오류를 보고하는 예외 클래스
(클래스)
산술 오버플로를 보고하는 예외 클래스
(클래스)
산술 언더플로를 보고하는 예외 클래스
(클래스)

시놉시스

namespace std {
  class logic_error;
  class domain_error;
  class invalid_argument;
  class length_error;
  class out_of_range;
  class runtime_error;
  class range_error;
  class overflow_error;
  class underflow_error;
}

클래스 std::logic_error

namespace std {
  class logic_error : public exception
  {
  public:
    constexpr explicit logic_error(const string& what_arg);
    constexpr explicit logic_error(const char* what_arg);
  };
}

클래스 std::domain_error

namespace std {
  class domain_error : public logic_error
  {
  public:
    constexpr explicit domain_error(const string& what_arg);
    constexpr explicit domain_error(const char* what_arg);
  };
}

클래스 std::invalid_argument

namespace std {
  class invalid_argument : public logic_error
  {
  public:
    constexpr explicit invalid_argument(const string& what_arg);
    constexpr explicit invalid_argument(const char* what_arg);
  };
}

클래스 std::length_error

namespace std {
  class length_error : public logic_error
  {
  public:
    constexpr explicit length_error(const string& what_arg);
    constexpr explicit length_error(const char* what_arg);
  };
}

클래스 std::out_of_range

namespace std {
  class out_of_range : public logic_error
  {
  public:
    constexpr explicit out_of_range(const string& what_arg);
    constexpr explicit out_of_range(const char* what_arg);
  };
}

클래스 std::runtime_error

namespace std {
  class runtime_error : public exception
  {
  public:
    constexpr explicit runtime_error(const string& what_arg);
    constexpr explicit runtime_error(const char* what_arg);
  };
}

클래스 std::range_error

namespace std {
  class range_error : public runtime_error
  {
  public:
    constexpr explicit range_error(const string& what_arg);
    constexpr explicit range_error(const char* what_arg);
  };
}

클래스 std::overflow_error

namespace std {
  class overflow_error : public runtime_error
  {
  public:
    constexpr explicit overflow_error(const string& what_arg);
    constexpr explicit overflow_error(const char* what_arg);
  };
}

클래스 std::underflow_error

namespace std {
  class underflow_error : public runtime_error
  {
  public:
    constexpr explicit underflow_error(const string& what_arg);
    constexpr explicit underflow_error(const char* what_arg);
  };
}

참고 항목

표준 라이브러리 구성 요소에서 발생하는 예외의 기본 클래스
(클래스)