public class CollisionException extends Exception
vehicle with an attribute power. Finally we try to add an attribute called power and which overrides power. A CollisionException will be thrown.| Constructor and Description |
|---|
CollisionException(String message)
Constructs a
CollisionException with the specified detail message. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CollisionException(String message)
CollisionException with the specified detail message.message - the detail message.Copyright © 2022. All rights reserved.