net.sf.mmm.util.io.api.StreamClosedException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mmm-util-io Show documentation
Show all versions of mmm-util-io Show documentation
Utilities for input/output and streaming.
The newest version!
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package net.sf.mmm.util.io.api;
import net.sf.mmm.util.exception.api.NlsRuntimeException;
import net.sf.mmm.util.io.NlsBundleUtilIoRoot;
/**
* A {@link StreamClosedException} is thrown if a stream is used that has already been {@link java.io.Closeable#close()
* closed}.
*
* @author Joerg Hohwiller (hohwille at users.sourceforge.net)
* @since 2.0.0
*/
public class StreamClosedException extends NlsRuntimeException {
private static final long serialVersionUID = 8196684815578319363L;
/** @see #getCode() */
public static final String MESSAGE_CODE = "StreamClosed";
/**
* The constructor.
*/
public StreamClosedException() {
super(createBundle(NlsBundleUtilIoRoot.class).errorStreamClosed());
}
@Override
public String getCode() {
return MESSAGE_CODE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy