SystemException Class
Serves as the base class for system exceptions namespace.
Assembly: Β mscorlib (in mscorlib.dll)
ββSystem::Exception
ββββSystem::SystemException
ββββββMicrosoft.SqlServer.Server::InvalidUdtException
ββββββSystem::AccessViolationException
ββββββSystem.Activities::ValidationException
ββββββSystem::AppDomainUnloadedException
ββββββSystem::ArgumentException
ββββββSystem::ArithmeticException
ββββββSystem::ArrayTypeMismatchException
ββββββSystem::BadImageFormatException
ββββββSystem::CannotUnloadAppDomainException
ββββββSystem.Collections.Generic::KeyNotFoundException
ββββββSystem.ComponentModel.Design.Serialization::CodeDomSerializerException
ββββββSystem.ComponentModel::LicenseException
ββββββSystem.ComponentModel::WarningException
ββββββSystem.Configuration::ConfigurationException
ββββββSystem.Configuration.Install::InstallException
ββββββSystem::ContextMarshalException
ββββββSystem.Data::DataException
ββββββSystem.Data::DBConcurrencyException
ββββββSystem.Data::OperationAbortedException
ββββββSystem.Data.SqlTypes::SqlTypeException
ββββββSystem::DataMisalignedException
ββββββSystem.Deployment.Application::DeploymentException
ββββββSystem.DirectoryServices.AccountManagement::PrincipalException
ββββββSystem.Drawing.Printing::InvalidPrinterException
ββββββSystem.EnterpriseServices::RegistrationException
ββββββSystem.EnterpriseServices::ServicedComponentException
ββββββSystem::ExecutionEngineException
ββββββSystem::FormatException
ββββββSystem.IdentityModel::LimitExceededException
ββββββSystem.IdentityModel::SecurityMessageSerializationException
ββββββSystem.IdentityModel.Tokens::SecurityTokenException
ββββββSystem::IndexOutOfRangeException
ββββββSystem::InsufficientExecutionStackException
ββββββSystem::InvalidCastException
ββββββSystem::InvalidOperationException
ββββββSystem::InvalidProgramException
ββββββSystem.IO::InternalBufferOverflowException
ββββββSystem.IO::InvalidDataException
ββββββSystem.IO::IOException
ββββββSystem.Management::ManagementException
ββββββSystem::MemberAccessException
ββββββSystem::MulticastNotSupportedException
ββββββSystem::NotImplementedException
ββββββSystem::NotSupportedException
ββββββSystem::NullReferenceException
ββββββSystem::OperationCanceledException
ββββββSystem::OutOfMemoryException
ββββββSystem.Printing::PrintSystemException
ββββββSystem::RankException
ββββββSystem.Reflection::AmbiguousMatchException
ββββββSystem.Reflection::ReflectionTypeLoadException
ββββββSystem.Resources::MissingManifestResourceException
ββββββSystem.Resources::MissingSatelliteAssemblyException
ββββββSystem.Runtime.InteropServices::ExternalException
ββββββSystem.Runtime.InteropServices::InvalidComObjectException
ββββββSystem.Runtime.InteropServices::InvalidOleVariantTypeException
ββββββSystem.Runtime.InteropServices::MarshalDirectiveException
ββββββSystem.Runtime.InteropServices::SafeArrayRankMismatchException
ββββββSystem.Runtime.InteropServices::SafeArrayTypeMismatchException
ββββββSystem.Runtime.Remoting::RemotingException
ββββββSystem.Runtime.Remoting::ServerException
ββββββSystem.Runtime.Serialization::SerializationException
ββββββSystem.Security.Authentication::AuthenticationException
ββββββSystem.Security.Cryptography::CryptographicException
ββββββSystem.Security::HostProtectionException
ββββββSystem.Security.Policy::PolicyException
ββββββSystem.Security.Principal::IdentityNotMappedException
ββββββSystem.Security::SecurityException
ββββββSystem.Security::VerificationException
ββββββSystem.Security::XmlSyntaxException
ββββββSystem.ServiceModel::CommunicationException
ββββββSystem.ServiceModel.Dispatcher::InvalidBodyAccessException
ββββββSystem.ServiceModel.Dispatcher::MultipleFilterMatchesException
ββββββSystem.ServiceModel::InvalidMessageContractException
ββββββSystem.ServiceModel::QuotaExceededException
ββββββSystem.ServiceProcess::TimeoutException
ββββββSystem::StackOverflowException
ββββββSystem.Threading::AbandonedMutexException
ββββββSystem.Threading::SemaphoreFullException
ββββββSystem.Threading::SynchronizationLockException
ββββββSystem.Threading::ThreadAbortException
ββββββSystem.Threading::ThreadInterruptedException
ββββββSystem.Threading::ThreadStartException
ββββββSystem.Threading::ThreadStateException
ββββββSystem::TimeoutException
ββββββSystem.Transactions::TransactionException
ββββββSystem::TypeInitializationException
ββββββSystem::TypeLoadException
ββββββSystem::TypeUnloadedException
ββββββSystem::UnauthorizedAccessException
ββββββSystem::UriTemplateMatchException
ββββββSystem.Web.Caching::DatabaseNotEnabledForNotificationException
ββββββSystem.Web.Caching::TableNotEnabledForNotificationException
ββββββSystem.Web.Management::SqlExecutionException
ββββββSystem.Web.Services.Protocols::SoapException
ββββββSystem.Windows.Automation::ElementNotAvailableException
ββββββSystem.Windows.Data::ValueUnavailableException
ββββββSystem.Windows.Markup::XamlParseException
ββββββSystem.Windows.Media.Animation::AnimationException
ββββββSystem.Windows.Media::InvalidWmpVersionException
ββββββSystem.Workflow.Activities::EventDeliveryFailedException
ββββββSystem.Workflow.Activities::WorkflowAuthorizationException
ββββββSystem.Workflow.Runtime.Hosting::PersistenceException
ββββββSystem.Workflow.Runtime.Tracking::TrackingProfileDeserializationException
ββββββSystem.Xml.Schema::XmlSchemaException
ββββββSystem.Xml::XmlException
ββββββSystem.Xml.XPath::XPathException
ββββββSystem.Xml.Xsl::XsltException
| Name | Description | |
|---|---|---|
![]() | SystemException() | Initializes a new instance of the SystemException class. |
![]() | SystemException(SerializationInfo^,βStreamingContext) | Initializes a new instance of the SystemException class with serialized data. |
![]() | SystemException(String^) | Initializes a new instance of the SystemException class with a specified error message. |
![]() | SystemException(String^,βException^) | Initializes a new instance of the SystemException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
| Name | Description | |
|---|---|---|
![]() | Data | Gets a collection of key/value pairs that provide additional user-defined information about the exception.(Inherited from Exception.) |
![]() | HelpLink | Gets or sets a link to the help file associated with this exception.(Inherited from Exception.) |
![]() | HResult | Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.(Inherited from Exception.) |
![]() | InnerException | |
![]() | Message | Gets a message that describes the current exception.(Inherited from Exception.) |
![]() | Source | Gets or sets the name of the application or the object that causes the error.(Inherited from Exception.) |
![]() | StackTrace | Gets a string representation of the immediate frames on the call stack.(Inherited from Exception.) |
![]() | TargetSite | Gets the method that throws the current exception.(Inherited from Exception.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetBaseException() | |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetObjectData(SerializationInfo^,βStreamingContext) | When overridden in a derived class, sets the SerializationInfo with information about the exception.(Inherited from Exception.) |
![]() | GetType() | Gets the runtime type of the current instance.(Inherited from Exception.) |
![]() | MemberwiseClone() | |
![]() | ToString() | Creates and returns a string representation of the current exception.(Inherited from Exception.) |
| Name | Description | |
|---|---|---|
![]() | SerializeObjectState | Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception.(Inherited from Exception.) |
This class is provided as a means to differentiate between system exceptions and application exceptions. It is the base class of such exceptions as ArgumentException, FormatException, and InvalidOperationException.
Important |
|---|
Because SystemException serves as the base class of a variety of exception types, your code should not throw a SystemException exception, nor should it attempt to handle a SystemException exception unless you intend to re-throw the original exception. |
SystemException uses the HRESULT COR_E_SYSTEM, that has the value 0x80131501.
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
.jpeg?cs-save-lang=1&cs-lang=cpp)
.jpeg?cs-save-lang=1&cs-lang=cpp)
.jpeg?cs-save-lang=1&cs-lang=cpp)
.jpeg?cs-save-lang=1&cs-lang=cpp)
.jpeg?cs-save-lang=1&cs-lang=cpp)