# Poco::Util

# class OptionException

Library: Util
Package: Options
Header: Poco/Util/OptionException.h

## Inheritance

Direct Base Classes: Poco::DataException

All Base Classes: Poco::DataException, Poco::Exception, Poco::RuntimeException, std::exception

Known Derived Classes: UnknownOptionException, AmbiguousOptionException, MissingOptionException, MissingArgumentException, InvalidArgumentException, UnexpectedArgumentException, IncompatibleOptionsException, DuplicateOptionException, EmptyOptionException

## Member Summary

Member Functions: className, clone, name, operator =, rethrow

Inherited Functions: className, clone, code, displayText, extendedMessage, message, name, nested, operator =, rethrow, what

## Constructors

### OptionException

OptionException(
int code = 0
);

### OptionException

OptionException(
const OptionException & exc
);

### OptionException

OptionException(
const std::string & msg,
int code = 0
);

### OptionException

OptionException(
const std::string & msg,
const std::string & arg,
int code = 0
);

### OptionException

OptionException(
const std::string & msg,
const Poco::Exception & exc,
int code = 0
);

## Destructor

### ~OptionException

~OptionException();

## Member Functions

### className

const char * className() const;

See also: Poco::DataException::className()

### clone

Poco::Exception * clone() const;

### name

const char * name() const;

See also: Poco::DataException::name()

### operator =

OptionException & operator = (
const OptionException & exc
);

### rethrow

void rethrow() const;

See also: Poco::DataException::rethrow()