InvalidInputException Class
The InvalidInputException class is raised when validation of input data fails in the DAC package.
Inheritance Hierarchy
System.Object
System.Exception
Microsoft.SqlServer.Management.Common.SqlServerManagementException
Microsoft.SqlServer.Management.Dac.DacException
Microsoft.SqlServer.Management.Dac.InvalidInputException
Namespace: Microsoft.SqlServer.Management.Dac
Assembly: Microsoft.SqlServer.Management.Dac (in Microsoft.SqlServer.Management.Dac.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public NotInheritable Class InvalidInputException _
Inherits DacException
'Usage
Dim instance As InvalidInputException
[SerializableAttribute]
public sealed class InvalidInputException : DacException
[SerializableAttribute]
public ref class InvalidInputException sealed : public DacException
[<SealedAttribute>]
[<SerializableAttribute>]
type InvalidInputException =
class
inherit DacException
end
public final class InvalidInputException extends DacException
The InvalidInputException type exposes the following members.
Constructors
Name | Description | |
---|---|---|
InvalidInputException(String) | Initializes a new instance of the InvalidInputException class that has the specified message text. | |
InvalidInputException(String, Exception) | Initializes a new instance of the InvalidInputException class that has the specified message text and inner exception. |
Top
Properties
Name | Description | |
---|---|---|
DacExceptionType | Gets the type of the exception. (Inherited from DacException.) | |
Data | (Inherited from Exception.) | |
HelpLink | Gets a string with the URL help link that further explains the exception. (Inherited from DacException.) | |
HResult | (Inherited from Exception.) | |
InnerException | (Inherited from Exception.) | |
Message | (Inherited from Exception.) | |
Source | (Inherited from Exception.) | |
StackTrace | (Inherited from Exception.) | |
TargetSite | (Inherited from Exception.) |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetBaseException | (Inherited from Exception.) | |
GetHashCode | (Inherited from Object.) | |
GetObjectData | (Inherited from Exception.) | |
GetType | (Inherited from Exception.) | |
Init | Initializes provider properties. (Inherited from DacException.) | |
MemberwiseClone | (Inherited from Object.) | |
SetHelpContext | Sets the help context for the help link. (Inherited from DacException.) | |
ToString | (Inherited from Exception.) |
Top
Remarks
Using the InvalidInputException class, you can:
Handle errors generated by invalid input in the DAC namespace.
Determine the cause of the error.
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.
Examples
VC#
try
{
//Enter Dac code here.
}
//Catch the invalid input exception.
catch (InvalidInputException iiex)
{
System.Console.WriteLine("This is a invalid input exception");
//Display the exception message.
System.Console.WriteLine(iiex.Message);
}
//Catch other exceptions.
catch (Exception ex)
{
System.Console.WriteLine("This is another exception.");
}
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.
See Also