Click or drag to resize

P4Exception Class

Base class for exceptions caused by run time errors from the server. They can be disabled, by setting the MinThrowLevel to ErrorSeverity.E_NOEXC.
Inheritance Hierarchy
SystemObject
  SystemException
    Perforce.P4P4Exception
      More...

Namespace:  Perforce.P4
Assembly:  p4api.net (in p4api.net.dll) Version: 2023.2.258.5793
Syntax
public class P4Exception : Exception

The P4Exception type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCmdLine
Error message
Public propertyData (Inherited from Exception.)
Public propertyDetails
Error message
Public propertyErrorCode
Error number from the C++ API
Public propertyErrorLevel
Severity of the error
Public propertyHelpLink (Inherited from Exception.)
Protected propertyHResult (Inherited from Exception.)
Public propertyInnerException (Inherited from Exception.)
Public propertyMessage
Error message
(Overrides ExceptionMessage.)
Public propertyStatic memberMinThrowLevel
Minimum error to cause an exception to be thrown
Public propertyNextError
If more than one error was returned by a command, the next error in the list.
Public propertySource (Inherited from Exception.)
Public propertyStackTrace (Inherited from Exception.)
Public propertyTargetSite (Inherited from Exception.)
Top
Methods
  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 methodMemberwiseClone (Inherited from Object.)
Public methodStatic memberThrow(P4ClientError)
Create and throw an exception if it exceeds the MinThrowLevel
Public methodStatic memberThrow(ErrorSeverity, String)
Create and throw an exception if it exceeds the MinThrowLevel
Public methodStatic memberThrow(String, String, P4ClientError)
Create and throw an exception if it exceeds the MinThrowLevel
Public methodStatic memberThrow(String, String, ErrorSeverity, String)
Create and throw an exception if it exceeds the MinThrowLevel
Public methodToString (Inherited from Exception.)
Top
Events
  NameDescription
Protected eventSerializeObjectState (Inherited from Exception.)
Top
See Also
Inheritance Hierarchy