001package com.streamconverter; 002 003/** 004 * Custom exception for stream processing errors. 005 * 006 * <p>This exception is thrown when errors occur during stream processing operations, providing 007 * meaningful context about the failure while preserving the original exception information. 008 */ 009public class StreamProcessingException extends RuntimeException { 010 011 /** 012 * Constructs a new StreamProcessingException with the specified detail message. 013 * 014 * @param message the detail message 015 */ 016 public StreamProcessingException(String message) { 017 super(message); 018 } 019 020 /** 021 * Constructs a new StreamProcessingException with the specified detail message and cause. 022 * 023 * @param message the detail message 024 * @param cause the cause of the exception 025 */ 026 public StreamProcessingException(String message, Throwable cause) { 027 super(message, cause); 028 } 029 030 /** 031 * Constructs a new StreamProcessingException with the specified cause. 032 * 033 * @param cause the cause of the exception 034 */ 035 public StreamProcessingException(Throwable cause) { 036 super(cause); 037 } 038}