Freigeben über


SQLIntegrityConstraintViolationException Constructors

Definition

Overloads

SQLIntegrityConstraintViolationException()

Constructs a SQLIntegrityConstraintViolationException object.

SQLIntegrityConstraintViolationException(Throwable)

Constructs an SQLIntegrityConstraintViolationException object with a given cause.

SQLIntegrityConstraintViolationException(String)

Constructs a SQLIntegrityConstraintViolationException with a given reason.

SQLIntegrityConstraintViolationException(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

SQLIntegrityConstraintViolationException(String, Throwable)

Constructs a SQLIntegrityConstraintViolationException object with a given reason and cause.

SQLIntegrityConstraintViolationException(String, String)

Constructs a SQLIntegrityConstraintViolationException object with a given reason and SQLState.

SQLIntegrityConstraintViolationException(String, String, Throwable)

Constructs a SQLIntegrityConstraintViolationException object with a given reason, SQLState and cause.

SQLIntegrityConstraintViolationException(String, String, Int32)

Constructs a SQLIntegrityConstraintViolationException object with a given reason, SQLState and vendorCode.

SQLIntegrityConstraintViolationException(String, String, Int32, Throwable)

Constructs a SQLIntegrityConstraintViolationException object with a given reason, SQLState, vendorCode and cause.

SQLIntegrityConstraintViolationException()

Constructs a SQLIntegrityConstraintViolationException object.

[Android.Runtime.Register(".ctor", "()V", "")]
public SQLIntegrityConstraintViolationException ();
Attributes

Remarks

Constructs a SQLIntegrityConstraintViolationException object. The reason, SQLState are initialized to null and the vendor code is initialized to 0.

The cause is not initialized, and may subsequently be initialized by a call to the Throwable#initCause(java.lang.Throwable) method.

Added in 1.6.

Java documentation for java.sql.SQLIntegrityConstraintViolationException.SQLIntegrityConstraintViolationException().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SQLIntegrityConstraintViolationException(Throwable)

Constructs an SQLIntegrityConstraintViolationException object with a given cause.

[Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")]
public SQLIntegrityConstraintViolationException (Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")>]
new Java.Sql.SQLIntegrityConstraintViolationException : Java.Lang.Throwable -> Java.Sql.SQLIntegrityConstraintViolationException

Parameters

cause
Throwable

the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.

Attributes

Remarks

Constructs an SQLIntegrityConstraintViolationException object with a given cause. The SQLState is initialized to null and the vendor code is initialized to 0. The reason is initialized to null if cause==null or to cause.toString() if cause!=null.

Added in 1.6.

Java documentation for java.sql.SQLIntegrityConstraintViolationException.SQLIntegrityConstraintViolationException(java.lang.Throwable).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SQLIntegrityConstraintViolationException(String)

Constructs a SQLIntegrityConstraintViolationException with a given reason.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public SQLIntegrityConstraintViolationException (string? reason);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Java.Sql.SQLIntegrityConstraintViolationException : string -> Java.Sql.SQLIntegrityConstraintViolationException

Parameters

reason
String

a description of the exception

Attributes

Remarks

Constructs a SQLIntegrityConstraintViolationException with a given reason. The SQLState is initialized to null and the vender code is initialized to 0.

The cause is not initialized, and may subsequently be initialized by a call to the Throwable#initCause(java.lang.Throwable) method.

Added in 1.6.

Java documentation for java.sql.SQLIntegrityConstraintViolationException.SQLIntegrityConstraintViolationException(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SQLIntegrityConstraintViolationException(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected SQLIntegrityConstraintViolationException (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Sql.SQLIntegrityConstraintViolationException : nativeint * Android.Runtime.JniHandleOwnership -> Java.Sql.SQLIntegrityConstraintViolationException

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SQLIntegrityConstraintViolationException(String, Throwable)

Constructs a SQLIntegrityConstraintViolationException object with a given reason and cause.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")]
public SQLIntegrityConstraintViolationException (string? reason, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")>]
new Java.Sql.SQLIntegrityConstraintViolationException : string * Java.Lang.Throwable -> Java.Sql.SQLIntegrityConstraintViolationException

Parameters

reason
String

a description of the exception.

cause
Throwable

the (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.

Attributes

Remarks

Constructs a SQLIntegrityConstraintViolationException object with a given reason and cause. The SQLState is initialized to null and the vendor code is initialized to 0.

Added in 1.6.

Java documentation for java.sql.SQLIntegrityConstraintViolationException.SQLIntegrityConstraintViolationException(java.lang.String, java.lang.Throwable).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SQLIntegrityConstraintViolationException(String, String)

Constructs a SQLIntegrityConstraintViolationException object with a given reason and SQLState.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public SQLIntegrityConstraintViolationException (string? reason, string? SQLState);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")>]
new Java.Sql.SQLIntegrityConstraintViolationException : string * string -> Java.Sql.SQLIntegrityConstraintViolationException

Parameters

reason
String

a description of the exception

SQLState
String

an XOPEN or SQL:2003 code identifying the exception

Attributes

Remarks

Constructs a SQLIntegrityConstraintViolationException object with a given reason and SQLState.

The cause is not initialized, and may subsequently be initialized by a call to the Throwable#initCause(java.lang.Throwable) method. The vendor code is initialized to 0.

Added in 1.6.

Java documentation for java.sql.SQLIntegrityConstraintViolationException.SQLIntegrityConstraintViolationException(java.lang.String, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SQLIntegrityConstraintViolationException(String, String, Throwable)

Constructs a SQLIntegrityConstraintViolationException object with a given reason, SQLState and cause.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V", "")]
public SQLIntegrityConstraintViolationException (string? reason, string? SQLState, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V", "")>]
new Java.Sql.SQLIntegrityConstraintViolationException : string * string * Java.Lang.Throwable -> Java.Sql.SQLIntegrityConstraintViolationException

Parameters

reason
String

a description of the exception.

SQLState
String

an XOPEN or SQL:2003 code identifying the exception

cause
Throwable

the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.

Attributes

Remarks

Constructs a SQLIntegrityConstraintViolationException object with a given reason, SQLState and cause. The vendor code is initialized to 0.

Added in 1.6.

Java documentation for java.sql.SQLIntegrityConstraintViolationException.SQLIntegrityConstraintViolationException(java.lang.String, java.lang.String, java.lang.Throwable).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SQLIntegrityConstraintViolationException(String, String, Int32)

Constructs a SQLIntegrityConstraintViolationException object with a given reason, SQLState and vendorCode.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;I)V", "")]
public SQLIntegrityConstraintViolationException (string? reason, string? SQLState, int vendorCode);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;I)V", "")>]
new Java.Sql.SQLIntegrityConstraintViolationException : string * string * int -> Java.Sql.SQLIntegrityConstraintViolationException

Parameters

reason
String

a description of the exception

SQLState
String

an XOPEN or SQL:2003 code identifying the exception

vendorCode
Int32

a database vendor specific exception code

Attributes

Remarks

Constructs a SQLIntegrityConstraintViolationException object with a given reason, SQLState and vendorCode.

The cause is not initialized, and may subsequently be initialized by a call to the Throwable#initCause(java.lang.Throwable) method.

Added in 1.6.

Java documentation for java.sql.SQLIntegrityConstraintViolationException.SQLIntegrityConstraintViolationException(java.lang.String, java.lang.String, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SQLIntegrityConstraintViolationException(String, String, Int32, Throwable)

Constructs a SQLIntegrityConstraintViolationException object with a given reason, SQLState, vendorCode and cause.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;ILjava/lang/Throwable;)V", "")]
public SQLIntegrityConstraintViolationException (string? reason, string? SQLState, int vendorCode, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;ILjava/lang/Throwable;)V", "")>]
new Java.Sql.SQLIntegrityConstraintViolationException : string * string * int * Java.Lang.Throwable -> Java.Sql.SQLIntegrityConstraintViolationException

Parameters

reason
String

a description of the exception

SQLState
String

an XOPEN or SQL:2003 code identifying the exception

vendorCode
Int32

a database vendor-specific exception code

cause
Throwable

the (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.

Attributes

Remarks

Constructs a SQLIntegrityConstraintViolationException object with a given reason, SQLState, vendorCode and cause.

Added in 1.6.

Java documentation for java.sql.SQLIntegrityConstraintViolationException.SQLIntegrityConstraintViolationException(java.lang.String, java.lang.String, int, java.lang.Throwable).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to