
com.yahoo.sketches.SketchesReadOnlyException Maven / Gradle / Ivy
/*
* Copyright 2017, Yahoo! Inc. Licensed under the terms of the
* Apache License 2.0. See LICENSE file at the project root for terms.
*/
package com.yahoo.sketches;
/**
* Write operation attempted on a read-only class.
*
* @author Lee Rhodes
*/
public class SketchesReadOnlyException extends SketchesException {
private static final long serialVersionUID = 1L;
//other constructors to be added as needed.
/**
* Constructs a new runtime exception with the message:
* "Write operation attempted on a read-only class."
*
* The cause is not initialized, and may subsequently be initialized by a call to
* Throwable.initCause(java.lang.Throwable).
*/
public SketchesReadOnlyException() {
super("Write operation attempted on a read-only class.");
}
/**
* Constructs a new runtime exception with the specified detail message. The cause is not
* initialized, and may subsequently be initialized by a call to
* Throwable.initCause(java.lang.Throwable).
*
* @param message the detail message. The detail message is saved for later retrieval by the
* Throwable.getMessage() method.
*/
public SketchesReadOnlyException(final String message) {
super(message);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy