0

Why do we use the indefinite article a in the following phrase, rather than the definite article?

If that method is called on a multi element Navigator then a SingleElementNavigatorOnlyMethodException is thrown.

I'm interested in the "a SingleElementNavigatorOnlyMethodException is thrown" part.

  • It's referring to a new instance, not one that had been referred to previously. – Mitch Jun 20 '18 at 17:16
  • It's often written either way. Unless there's a previously mentioned exception, there's no confusion. – Barmar Jun 21 '18 at 0:22
  • 1
    Possible duplicate of Are there any simple rules for choosing the definite vs. indefinite (vs. none) article? – Elasthiccgirl Jun 21 '18 at 7:34
  • @Mitch please tell me what should I write if I'm reporting a bug and there was an exception thrown during the execution of a program? An exception is thrown or the exception is thrown. Thank you – Вячеслав Пегаскин Jun 21 '18 at 13:09
  • @ВячеславПегаскин 'a/an' – Mitch Jun 21 '18 at 14:15
0

The SingleElementNavigatorOnlyMethodException class creates a SingleElementNavigatorOnlyMethodException object, so the noun in question would be definite (singular) if referring to the class, but indefinite if referring to an object created from the class.

  • @JohnMark Perry Thank you. Please tell me what should I write if I'm reporting a bug and there was an exception thrown during the execution of a program? An exception is thrown or the exception is thrown. – Вячеслав Пегаскин Jun 21 '18 at 13:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.