Module com.s8.api

Class S8IOException

All Implemented Interfaces:
Serializable

public class S8IOException extends IOException
S8 IO Exception
Author:
Pierre Convert Copyright (C) 2025, Pierre Convert. All rights reserved.
See Also:
  • Constructor Details

    • S8IOException

      public S8IOException(String message)
      Main constructor
      Parameters:
      message - the main wrapped message
    • S8IOException

      public S8IOException(String message, Class<?> type)
      Constructor for specific type
      Parameters:
      message - the wrapped message
      type - the involved type
    • S8IOException

      public S8IOException(String message, Class<?> type, Exception cause)
      Constructor for type + cause catching
      Parameters:
      message - the wrapped message
      type - the involved type
      cause - the root cause exception
    • S8IOException

      public S8IOException(String message, Field field, Exception cause)
      Constructor for field + cause catching
      Parameters:
      message - the wrapped message
      field - the involved field
      cause - the root cause
    • S8IOException

      public S8IOException(String message, Method method, Exception cause)
      Constructor for method + cause catching
      Parameters:
      message - the wrapped message
      method - the involved method
      cause - the root cause
  • Method Details

    • getInvolvedType

      public Class<?> getInvolvedType()
      Get the involved type
      Returns:
      the type
    • getInvolvedField

      public Field getInvolvedField()
      Get the involved field
      Returns:
      the field
    • getInvolvedMethod

      public Method getInvolvedMethod()
      Get the involved method
      Returns:
      the method
    • getCause

      public Exception getCause()
      Get the root cause
      Overrides:
      getCause in class Throwable
      Returns:
      the cause