2019-01-13 20:54:44 +01:00
|
|
|
using System;
|
2017-06-17 18:59:17 -04:00
|
|
|
|
|
|
|
|
namespace NLangDetect.Core
|
|
|
|
|
{
|
2019-01-13 20:22:56 +01:00
|
|
|
public class NLangDetectException : Exception
|
2017-06-17 18:59:17 -04:00
|
|
|
{
|
2019-01-13 20:22:56 +01:00
|
|
|
#region Constructor(s)
|
2017-06-17 18:59:17 -04:00
|
|
|
|
2019-01-13 20:22:56 +01:00
|
|
|
public NLangDetectException(string message, ErrorCode errorCode)
|
|
|
|
|
: base(message)
|
|
|
|
|
{
|
|
|
|
|
ErrorCode = errorCode;
|
|
|
|
|
}
|
2017-06-17 18:59:17 -04:00
|
|
|
|
2019-01-13 20:22:56 +01:00
|
|
|
#endregion
|
2017-06-17 18:59:17 -04:00
|
|
|
|
2019-01-13 20:22:56 +01:00
|
|
|
#region Properties
|
2017-06-17 18:59:17 -04:00
|
|
|
|
2019-01-13 20:22:56 +01:00
|
|
|
public ErrorCode ErrorCode { get; private set; }
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
2017-06-17 18:59:17 -04:00
|
|
|
}
|