23 lines
791 B
C#
23 lines
791 B
C#
using Sarand.Net.Standard.Base.Utils;
|
|
using System;
|
|
|
|
namespace Sarand.Net.Standard.Base.Core
|
|
{
|
|
//=======================================================================
|
|
public class SacsErrorState
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Construction.
|
|
public SacsErrorState (string message)
|
|
{
|
|
Message = StringUtil.EmptyOnNull(message).ReplaceAll("\r\n","\n").ReplaceAll("\n"," ").TrimAll(new char[] { ' ', '\t', '\n', '\r' }, " ");
|
|
}
|
|
//-------------------------------------------------------------------
|
|
// Properties.
|
|
public String Message { get; private set; } = String.Empty;
|
|
//-------------------------------------------------------------------
|
|
}
|
|
|
|
//=======================================================================
|
|
}
|