Git Product home page Git Product logo

Comments (2)

d1snin avatar d1snin commented on May 18, 2024

Occurrences:

https://github.com/linda-project/linda/blob/aadd5ea8c41e68be2c8d9883b8985274a48e935c/src/main/kotlin/dev/d1s/linda/service/impl/RedirectServiceImpl.kt#L105

https://github.com/linda-project/linda/blob/aadd5ea8c41e68be2c8d9883b8985274a48e935c/src/main/kotlin/dev/d1s/linda/service/impl/RedirectServiceImpl.kt#L101

https://github.com/linda-project/linda/blob/aadd5ea8c41e68be2c8d9883b8985274a48e935c/src/main/kotlin/dev/d1s/linda/service/impl/RedirectServiceImpl.kt#L96

https://github.com/linda-project/linda/blob/aadd5ea8c41e68be2c8d9883b8985274a48e935c/src/main/kotlin/dev/d1s/linda/service/impl/RedirectServiceImpl.kt#L92

https://github.com/linda-project/linda/blob/aadd5ea8c41e68be2c8d9883b8985274a48e935c/src/main/kotlin/dev/d1s/linda/service/impl/RedirectServiceImpl.kt#L89

https://github.com/linda-project/linda/blob/aadd5ea8c41e68be2c8d9883b8985274a48e935c/src/main/kotlin/dev/d1s/linda/service/impl/ShortLinkServiceImpl.kt#L102

https://github.com/linda-project/linda/blob/aadd5ea8c41e68be2c8d9883b8985274a48e935c/src/main/kotlin/dev/d1s/linda/service/impl/ShortLinkServiceImpl.kt#L97

https://github.com/linda-project/linda/blob/aadd5ea8c41e68be2c8d9883b8985274a48e935c/src/main/kotlin/dev/d1s/linda/service/impl/ShortLinkServiceImpl.kt#L94

https://github.com/linda-project/linda/blob/aadd5ea8c41e68be2c8d9883b8985274a48e935c/src/main/kotlin/dev/d1s/linda/service/impl/ShortLinkServiceImpl.kt#L91

from linda.

d1snin avatar d1snin commented on May 18, 2024

I assume that I can handle org.springframework.dao.DataAccessException inside the @ControllerAdvice since DataAccessException is the root of the exception hierarchy.

Root of the hierarchy of data access exceptions discussed in Expert One-On-One J2EE Design and Development . Please see Chapter 9 of this book for detailed discussion of the motivation for this package.
This exception hierarchy aims to let user code find and handle the kind of error encountered without knowing the details of the particular data access API in use (e.g. JDBC). Thus it is possible to react to an optimistic locking failure without knowing that JDBC is being used.
As this class is a runtime exception, there is no need for user code to catch it or subclasses if any error is to be considered fatal (the usual case).
Author:
Rod Johnson

from linda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.