Errors Classes

OverSIP raises specific Ruby exceptions in certain cases. The list of Ruby exceptions provided by OverSIP is the following:

OverSIP::Error Exception

Such an exception is raised when some fatal error occurs when starting OverSIP.

OverSIP::ConfigurationError Exception

This class inherits from OverSIP::Error.

It is raised when OverSIP is started (or reloaded) and there is a configuration error that prevents such an action to properly happen.

OverSIP::RuntimeError Exception

This class inherits from OverSIP::Error.

It is raised when some method provided by the Ruby modules/classes of OverSIP is called with wrong arguments.

OverSIP::ParsingError Exception

This class inherits from OverSIP::RuntimeError.

It is raised when invalid data is passed to OverSIP::SIP::Uri.parse(uri) or OverSIP::SIP::NameAddr.parse(name_addr).