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

  • SEARCH
  • Home
  • 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 8754511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:38:19+00:00 2026-06-13T13:38:19+00:00

How should an exception be raised in VB.NET?

  • 0

How should an exception be raised in VB.NET?

  • 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-06-13T13:38:20+00:00Added an answer on June 13, 2026 at 1:38 pm

    You would throw a new exception.

    Have a look at Throw Statement (Visual Basic)

    The Throw statement throws an exception that you can handle with
    structured exception-handling code (Try…Catch…Finally) or
    unstructured exception-handling code (On Error GoTo). You can use the
    Throw statement to trap errors within your code because Visual Basic
    moves up the call stack until it finds the appropriate
    exception-handling code.

    EDIT

    By request and from the link

    Throw New System.Exception("An exception has occurred.")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a when in JBehave which under certain circumstances should throw an exception.
Should I create private static final String = Some exception message or leave it
Suppose I want to reflect exception in the log. Should I pass stack trace
I'm convinced at this point that I should be creating subclasses of std::exception for
Possible Duplicate: Which exception should I raise on bad/illegal argument combinations in Python? I've
The requirement: On an error (thrown exception), the file being processed should be moved
I just read in Code Complete that you should not use exceptions for flow
This is not 'How To Catch All Exceptions' but rather 'Should You Catch All
At first, this exception doesn't really make sense to me. Why shouldn't i be
Should we declare the private fields as volatile if the instanced are used in

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.