# Class MaterialService.MaterialNotFoundException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.university.bookstore.service.MaterialService.MaterialNotFoundException

All Implemented Interfaces:
  `Serializable`

Enclosing class:
  `MaterialService`

public static class MaterialService.MaterialNotFoundException extends RuntimeException
Exception thrown when a requested material is not found.

Since:
  2024-09-15
Version:
  3.0
Author:
  Navid Mohaghegh
See Also:
  - Serialized Form

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MaterialNotFoundException(String message)`
  `MaterialNotFoundException(String message, Throwable cause)`

- ## Method Summary

  ### Methods inherited from class java.lang.Throwable

  `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### MaterialNotFoundException

    public MaterialNotFoundException(String message)

  - ### MaterialNotFoundException

    public MaterialNotFoundException(String message, Throwable cause)