Share via


SPLog.Error method

Writes the specified error message or exception to the upgrade event log. This call will cause the upgrade session that contains the SPLog to increase its error count by one. An upgrade session that contains one or more errors is considered to have failed.

Overload list

  Name Description
Public method Error(String) Writes the specified string to the upgrade log as an error. This call will cause the upgrade session that contains the SPLog to increase its error count by one. An upgrade session that contains one or more errors is considered to have failed.
Public method Error(String, Exception) Writes the specified string and exception to the upgrade log as an error. This call will cause the upgrade session that contains the SPLog to increase its error count by one. An upgrade session that contains one or more errors is considered to have failed.
Public method Error(String, []) Writes the specified string and object to the upgrade log as an error. This call will cause the upgrade session that contains the SPLog to increase its error count by one. An upgrade session that contains one or more errors is considered to have failed.
Public method Error(SPUpgradeSession, String) Writes the specified error message to the upgrade event log specified by the user. This call will cause the upgrade session that contains the SPLog to increase its error count by one. An upgrade session that contains one or more errors is considered to have failed.
Public method Error(String, Exception, []) Writes the specified string, exception, and a list of objects to the upgrade log as an error. This call will cause the upgrade session that contains the SPLog to increase its error count by one. An upgrade session that contains one or more errors is considered to have failed.

Top

See also

Reference

SPLog class

SPLog members

Microsoft.SharePoint.Upgrade namespace