Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6573993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:12:12+00:00 2026-05-25T15:12:12+00:00

I was wondering where exactly do you handling exception ? it is in the

  • 0

I was wondering where exactly do you handling exception ? it is in the service layer or the controller ?

If an error happen in the service layer.. and that this error must somehow be showed to the user.. how do we proceed ?

EDIT

I will explain, bring in context an account where the user have to specify username and password.. if that go through the AuthentificationService and that the username and password doesnt match i have to tell the user.. how i handle this scenario ? is the service layer will throw an exception ?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T15:12:13+00:00Added an answer on May 25, 2026 at 3:12 pm

    It depends on the exception.

    For some exceptions you’ll simply want to log them and carry on. For others you’ll want to inform the user about something.

    A specific example I had recently was an in-house app that relies on some web services. When the web services are not responding the app doesn’t work.

    In this scenario a WebException is thrown and I use that to inform the user that the service will not work at this time.

    In this case, I handle the exception in my service layer and I also let it propogate up the chain so I can react to it in the controller.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am wondering how exactly the information that a user with id x is
I was wondering about how to exactly implement domain service in RIA. Is it
I was just wondering how exactly memory works such that a language standard (such
I saw this language in a blog, but am wondering what exactly it means.
I was wondering how exactly does TCP implement in-order delivery. lets say this is
I'm just wondering exactly what factors affect how quickly createthread executes, and how long
I was reading litb's question about SFINAE here and I was wondering exactly what
I've been wondering what exactly are the principles of how the two properties work.
I'm wondering how exactly the XAML sample ( MSDN sample ) works: <Style x:Key=textBoxInError
Reading some posts from Jimmy Boggard and wondering - how exactly is it possible

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.