open class NegativeArraySizeException : RuntimeException
kotlin.Any
   ↳ kotlin.Throwable
   ↳ java.lang.Exception
   ↳ java.lang.RuntimeException
   ↳ java.lang.NegativeArraySizeException

Thrown if an application tries to create an array with negative size.

Summary

Public constructors

Constructs a NegativeArraySizeException with no detail message.

Constructs a NegativeArraySizeException with the specified detail message.

Public constructors

NegativeArraySizeException

NegativeArraySizeException()

Constructs a NegativeArraySizeException with no detail message.

NegativeArraySizeException

NegativeArraySizeException(s: String!)

Constructs a NegativeArraySizeException with the specified detail message.

Parameters
s String!: the detail message.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.