artiso-solutions / CoVoX

MIT License
1 stars 1 forks source link

Expose internal errors via delegate #49

Closed tommasobertoni closed 3 years ago

tommasobertoni commented 3 years ago

In case of internal errors (excluding validation), the errors should be exposed via a OnError event, that the consumer can subscribe to. In general, the engine should not break due to an exception.

public delegate void ErrorHandler(Exception ex);

public class CovoxEngine
{
    public event ErrorHandler OnError;
}