com.sage.swt.client.sdata
Class DefaultSDataDiagnosis

java.lang.Object
  extended by com.sage.swt.client.sdata.DefaultSDataDiagnosis
All Implemented Interfaces:
SDataDiagnosis

public class DefaultSDataDiagnosis
extends java.lang.Object
implements SDataDiagnosis

The default implementation of a SDataDiagnosis. This stores the information about the SDATA diagnosis.


Constructor Summary
DefaultSDataDiagnosis(SwtErrorLevel errorLevel, java.lang.String appCode, java.lang.String message, java.lang.String payloadPath, java.lang.String sdataCode, java.lang.String stackTrace)
           
 
Method Summary
 java.lang.String getAppCode()
          Returns the application's diagnosis code for the error.
 SwtErrorLevel getErrorLevel()
          Returns the level of severity for the SData error.
 java.lang.String getMessage()
          Returns a user-friendly message for the diagnosis.
 java.lang.String getPayloadPath()
          Returns the payload element responsible for the error.
 java.lang.String getSDataCode()
          Returns the SData diagnosis code for the error.
 java.lang.String getStackTrace()
          Returns the stack trace for the error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSDataDiagnosis

public DefaultSDataDiagnosis(SwtErrorLevel errorLevel,
                             java.lang.String appCode,
                             java.lang.String message,
                             java.lang.String payloadPath,
                             java.lang.String sdataCode,
                             java.lang.String stackTrace)
Method Detail

getAppCode

public java.lang.String getAppCode()
Returns the application's diagnosis code for the error.

Specified by:
getAppCode in interface SDataDiagnosis
Returns:
the application's diagnosis code for the error.

getErrorLevel

public SwtErrorLevel getErrorLevel()
Returns the level of severity for the SData error.

Specified by:
getErrorLevel in interface SDataDiagnosis
Returns:
the level of severity for the SData error.

getMessage

public java.lang.String getMessage()
Returns a user-friendly message for the diagnosis.

Specified by:
getMessage in interface SDataDiagnosis
Returns:
a user-friendly message for the diagnosis.

getPayloadPath

public java.lang.String getPayloadPath()
Returns the payload element responsible for the error.

Specified by:
getPayloadPath in interface SDataDiagnosis
Returns:
the payload element responsible for the error.

getSDataCode

public java.lang.String getSDataCode()
Returns the SData diagnosis code for the error.

Specified by:
getSDataCode in interface SDataDiagnosis
Returns:
the SData diagnosis code for the error.

getStackTrace

public java.lang.String getStackTrace()
Returns the stack trace for the error. It will only be filled when the service is run in "development" mode.

Specified by:
getStackTrace in interface SDataDiagnosis
Returns:
the stack trace for the error. It will only be filled when the service is run in "development" mode.


Copyright © 2011 Sage Software, Inc. All rights reserved.