Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Checked Exception

  1. #1
    Junior Member
    Join Date
    Apr 2013
    Location
    Australia
    Posts
    11
    My Mood
    Confused
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Checked Exception

    Hi, I was wondering if someone could help me with this question, please?

    Question 3)
    Write a class named ConnectionException that is a checked Exception. The constructor should receive an error message call the parent class passing details of the error that caused the Exception.

    So far I have...

    public class ConnectionException() throws Exception
    {
    	public ConnectionException(String message)
    	{
    		super(message);
    	}
    }

    Any help would be appreciated


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: Checked Exception

    Seems pretty reasonable to me.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. why should we declare checked exceptions?
    By me_shankara in forum Exceptions
    Replies: 3
    Last Post: April 19th, 2018, 12:53 PM
  2. Need program checked
    By snowqueen93 in forum Object Oriented Programming
    Replies: 2
    Last Post: April 21st, 2013, 06:34 AM
  3. Checked and unchecked Exception
    By vilkas in forum Exceptions
    Replies: 1
    Last Post: January 12th, 2013, 07:47 AM
  4. See if checkbox is checked
    By kney in forum Java Theory & Questions
    Replies: 9
    Last Post: December 7th, 2011, 07:23 AM
  5. Replies: 1
    Last Post: September 21st, 2011, 01:05 AM