Common exceptions
Previous  

Following are some of the more common .NET exception types that the .NET Framework itself might throw. Many of the names (in English at least) give a good indication of the problem that caused them to be thrown. This list actually shows groups of inheritance hierarchies with the more indented exceptions showing more specialised errors. Base exceptions such as System.ArgumentException may never be actually thrown. Also some, like System.DivideByZeroException, are caught by the weak-typing of Basic4PPC and will never be seen by Basic4PPC code. The exceptions derived from System.IO.IOException are of particular interest as it is quite possible that these may be thrown during file access.            

System.Exception
            
System.SystemException
            
System.ArgumentException   
            System.ArgumentNullException        
            System.ArgumentOutOfRangeException       
            System.DuplicateWaitObjectException
            
System.ArithmeticException  
            System.DivideByZeroException        
            System.OverflowException    
            System.NotFiniteNumberException

System.ArrayTypeMismatchException
            
System.ExecutionEngineException
            
System.FormatException
            
System.IndexOutOfRangeException
            
System.InvalidCastException
            
System.InvalidOperationException    
            System.ObjectDisposedException
            
System.InvalidProgramException

System.IO.IOException          
            System.IO.DirectoryNotFoundException      
            System.IO.EndOfStreamException    
            System.IO.FileLoadException           
            System.IO.FileNotFoundException   
            System.IO.PathTooLongException
            
System.NotImplementedException
            
System.NotSupportedException
            
System.NullReferenceException
            
System.OutOfMemoryException
            
System.RankException
            
System.Security.SecurityException
            
System.Security.VerificationException
            
System.StackOverflowException
            
System.Threading.SynchronizationLockException
            
System.Threading.ThreadAbortException
            
System.Threading.ThreadStateException
            
System.TypeInitializationException
            
System.UnauthorizedAccessException