public class NarrowingException extends TypeCastException
See Value narrowing for details.
| Constructor and Description |
|---|
NarrowingException()
Constructor.
|
NarrowingException(int srcValue,
boolean srcSigned,
String destTypeName)
Constructor.
|
NarrowingException(long srcValue,
boolean srcSigned,
String destTypeName)
Constructor.
|
NarrowingException(String message)
Constructor.
|
NarrowingException(String message,
Throwable cause)
Constructor.
|
NarrowingException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Constructor
|
NarrowingException(Throwable cause)
Constructor.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NarrowingException()
public NarrowingException(String message)
message - Description of the error.public NarrowingException(String message, Throwable cause)
message - description of the error.cause - cause of the error.public NarrowingException(Throwable cause)
cause - Cause of the error.public NarrowingException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
message - description of the error.cause - cause of the error.enableSuppression - whether or not suppression is enabled or disabled.writableStackTrace - whether or not the stack trace should be writable.public NarrowingException(int srcValue,
boolean srcSigned,
String destTypeName)
srcValue - source value for the narrowing.srcSigned - whether the value is signed or unsigned.destTypeName - target type name of the narrowing.public NarrowingException(long srcValue,
boolean srcSigned,
String destTypeName)
srcValue - source value for the narrowing.srcSigned - whether the value is signed or unsigned.destTypeName - target type name of the narrowing.Copyright © 2005–2025 Onix Solutions. All rights reserved.