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 8726707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:18:12+00:00 2026-06-13T08:18:12+00:00

Exception IO has structure: Exception IO of { name: string …. …} some other

  • 0

Exception IO has structure:

Exception IO of {
name: string
....
...}

some other arguments that I do not understand.

Do I have to assign all these. I mean what do I do after this?

exception IO of {inputfile}

I usually define exception and then raise. but I do not even define an exception this way.

All I want to do is raise an exception if input file is not existant. What do I do here?

Thank You

  • 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-13T08:18:13+00:00Added an answer on June 13, 2026 at 8:18 am

    Yes, you have to supply all three fields when creating an exception of type Io. The meanings of the fields are explained in the documentation:

    This is the principal exception raised when an error occurs in the I/O subsystem. The components of Io are:

    • name: The name component of the reader or writer.
    • function: The name of the function raising the exception.
    • cause: The underlying exception raised by the reader or writer, or detected at the stream I/O level.

    Some of the standard causes are:

    • OS.SysErr if an actual system call was done and failed.
      *Subscript if ill-formed arguments are given.
    • BlockingNotSupported
    • NonblockingNotSupported
    • ClosedStream

    The cause field of Io is not limited to these particular exceptions. Users who create their own readers or writers may raise any exception they like, which will be reported as the cause field of the resulting Io exception.

    Note that openIn already raises an Io exception if the file does not exist (with "openIn" as the function, the filename as the name and a SysErr as the cause), so there’s no need for you to raise your own.

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

Sidebar

Related Questions

I have a method that has many many statements like this: employee.LastName = file.EMPLOYEE.NAME.SUBNAME.FAMILYNAME.NAMEPART1.Value;
Does java has library exception class which means actually not an error, but good
Class 1 has the following code that generates the exception - -(IBAction) searchAllAction: (id)
I have the following snippet that loads the images: String imgName = /assets/ +
I have a table that has a composite key that consists of two int
Consider this example - I have a class called Report that has a field
I've inherited a database that has a structure with a table of products, a
I have a table discussion of which structure is following: Table name: discussion, Id
I'm using Play framework. I have a JSONObject which has a structure like the
In our application we have some data structures which amongst other things contain a

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.