Loupe - Log - Monitor - Resolve
Loupe.Agent.AspNetCore.Models Namespace / ClientSideException Class / IsEmpty Method

In This Topic
    IsEmpty Method (ClientSideException)
    In This Topic
    Indicates if the class is in fact empty i.e created but with no values
    Syntax
    'Declaration
     
    
    Public Function IsEmpty() As Boolean
    public bool IsEmpty()

    Return Value

    true if necessary properties not null; otherwise false
    Remarks
    This method is only used by the code creating a JavaScriptException as such it only needs to know if message and stack trace are not null. We need this method as if a request is received with an empty object rather than null for Error then JSON.net will create a new empty object with no data which we don't want to log.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also