Share via


UtilityException Class

The UtilityException class defines methods and properties that record utility exception information. It is the base class for all utility exception types.

Inheritance Hierarchy

System.Object
  System.Exception
    Microsoft.SqlServer.Management.Common.SqlServerManagementException
      Microsoft.SqlServer.Management.Utility.UtilityException

Namespace:  Microsoft.SqlServer.Management.Utility
Assembly:  Microsoft.SqlServer.Management.Utility (in Microsoft.SqlServer.Management.Utility.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public Class UtilityException _
    Inherits SqlServerManagementException
'Usage
Dim instance As UtilityException
[SerializableAttribute]
public class UtilityException : SqlServerManagementException
[SerializableAttribute]
public ref class UtilityException : public SqlServerManagementException
[<SerializableAttribute>]
type UtilityException =  
    class
        inherit SqlServerManagementException
    end
public class UtilityException extends SqlServerManagementException

The UtilityException type exposes the following members.

Constructors

  Name Description
Public method UtilityException() Initializes a new, default instance of the UtilityException class with the default property values.
Public method UtilityException(String) Initializes a new, default instance of the UtilityException class with the specified error message.
Protected method UtilityException(SerializationInfo, StreamingContext) Initializes a new, default instance of the UtilityException class with serialized data.
Public method UtilityException(String, Exception) Initializes a new, default instance of the UtilityException class with the specified error message and inner exception.

Top

Properties

  Name Description
Public property Data (Inherited from Exception.)
Public property HelpLink Gets a link to the SQL Server Help Web site. (Overrides Exception.HelpLink.)
Protected property HResult (Inherited from Exception.)
Public property InnerException (Inherited from Exception.)
Public property Message (Inherited from Exception.)
Protected propertyStatic member ProdVer Gets the product version of SQL Server.
Public property Source (Inherited from Exception.)
Public property StackTrace (Inherited from Exception.)
Public property TargetSite (Inherited from Exception.)

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetBaseException (Inherited from Exception.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData (Inherited from Exception.)
Public method GetType (Inherited from Exception.)
Protected method Init Initializes the exception properties.
Protected method MemberwiseClone (Inherited from Object.)
Protected method SetHelpContext Defines the Help context identifier for the exception.
Public method ToString (Inherited from Exception.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.