Export (0) Print
Expand All

InvalidInputException Class

The InvalidInputException class is raised when validation of input data fails in the DAC package.

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

[SerializableAttribute]
public sealed class InvalidInputException : DacException

The InvalidInputException type exposes the following members.

  NameDescription
Public methodInvalidInputException(String)Initializes a new instance of the InvalidInputException class that has the specified message text.
Public methodInvalidInputException(String, Exception)Initializes a new instance of the InvalidInputException class that has the specified message text and inner exception.
Top

  NameDescription
Public propertyDacExceptionTypeGets the type of the exception. (Inherited from DacException.)
Public propertyData (Inherited from Exception.)
Public propertyHelpLinkGets a string with the URL help link that further explains the exception. (Inherited from DacException.)
Protected propertyHResult (Inherited from Exception.)
Public propertyInnerException (Inherited from Exception.)
Public propertyMessage (Inherited from Exception.)
Public propertySource (Inherited from Exception.)
Public propertyStackTrace (Inherited from Exception.)
Public propertyTargetSite (Inherited from Exception.)
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetBaseException (Inherited from Exception.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetObjectData (Inherited from Exception.)
Public methodGetType (Inherited from Exception.)
Protected methodInitInitializes provider properties. (Inherited from DacException.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodSetHelpContextSets the help context for the help link. (Inherited from DacException.)
Public methodToString (Inherited from Exception.)
Top

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.

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."); 
} 

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft