Do crossbows and other noted exceptions miss past their long range underwater?

The rules is written as

A ranged weapon attack automatically misses a target beyond the weapon’s normal range. Even against a target within normal range, the attack roll has disadvantage unless the weapon is a crossbow, a net, or a weapon that is thrown like a javelin (including a spear, trident, or dart).

My question is if this part:

A ranged weapon attack automatically misses a target beyond the weapon’s normal range.

Is a complete clause on its own independent of the next sentences, or is a part of the later sentences. Do all ranged weapon attacks miss past their normal range, or only weapons that aren’t listed as exceptions?

Exceptions from exceptions, does such a thing exist?

I am intrigued: In many languages there are both normal control flow and exceptions.

But I never saw "an exception from an exception" or "an exception from an exception from an exception". Why?

Why there are just two variants?

My guess is that an "exception from an exception" would be just another class of exceptions, but this needs to be elaborated further.

How do I fix my code to stop exceptions from popping up?

I have the following code:

import java.util.Scanner; public class Chapter11_DigitalDeletion { @SuppressWarnings("unlikely-arg-type") public static void main(String[]args) {     Scanner sc=new Scanner(;     String a;     System.out.println("Type in your moves(ex. 3 5 8 0 2 4 5 - SPACES REQUIRED):");     a=sc.nextLine();     sc.close();     String[] moves_array=a.split(" ");     int lastValid = 1;     for(int i=moves_array.length-1; i>=1;i--) {     if(moves_array[i].equals("0")) {         lastValid = i + 1;     }     for(int k=lastValid; k<moves_array.length;k++) {     if(Integer.parseInt(moves_array[k])%2==1) {         moves_array[k]="odd";     }     if(Integer.parseInt(moves_array[k])%2==0) {         moves_array[k]="even";     }     if(moves_array[k]=="odd") {         moves_array[k].equals(Integer.parseInt(moves_array[k])-1);     }     if(moves_array[k]=="even") {         moves_array[k].equals(Integer.parseInt(moves_array[k-2]));             }         }     }     System.out.print(moves_array); } } 

I am trying to run this code to see if it works. But the program responds to me by giving me a bunch of lines of exceptions. Here’s what’s popping up:

Exception in thread "main" java.lang.NumberFormatException: For input string: "odd" at java.base/java.lang.NumberFormatException.forInputString( at java.base/java.lang.Integer.parseInt( at java.base/java.lang.Integer.parseInt( at Chapter11_DigitalDeletion.main( 

How do I fix these errors? What do these errors mean? And how should I confront the problems?

How to disable all emojis, gifs, stickers, animations and so forth (with exceptions) in all my computer systems?

I have two computer systems: PC and Smartphone.

I hold a minimalist philosophy in regards to web applications thus generally I use only two applications for written communication: Gmail and Line.

I don’t use FaceBook/WhatsApp/Instagram/AirBnb.

And yet even with the quite “minimal” general environment of Gmail and Line I often feel frustrated or annoyed from getting emojis/gifs/stickers/animations and so forth.

Being late in maybe 10 years, I asked myself why should I even consent to use these forms of communication – I think I should be given the option to decide if I want only letters or these symbols as well which I very much (yet not necessarily totally), don’t.

How to disable all emojis, gifs, stickers, animations and so forth (with exceptions) in all my computer systems?

How to configure .htaccess to rewrite all requests into a folder, except a list of exceptions

I have an established website with some legacy folders I would like to keep.


I’ve also installed WordPress. Because there’s an automated update/backup system, I chose to put WordPress into a folder. This way, the WordPress management system won’t see my legacy folders as part of WordPress and wipe them out next time there’s an upgrade.


I would like for when anyone visits to see the WordPress site, without the /WordPress/ part of the URL. No problem, Google has several results on how to do this, except, I still want my list of legacy folders to keep working and the answers I can find only work to redirect everything.

Is there a way to configure .htaccess to rewrite everything into the WordPress folder including /, but not my three or four legacy folders and everything inside, which I want the server to continue handling as normal?

ACPI Error: Needed [Integer/String/Buffer], Found [Region] and other exceptions when Adding more RAM

I am getting the below errors when I add two more RAM sticks(same kind, freq, DDR4 etc… S/N is the same) to my motherboard.These errors are on boot-up

  • already present RAM – Corsair Vengeance LPX 16GB (2x8GB) DDR4 DRAM 3000MHz C15 Desktop Memory Kit – Black (CMK16GX4M2B3000C15)
  • ASUS Prime X470-Pro AMD Ryzen 2 AM4 DDR4 DP HDMI M.2 USB 3.1 ATX Motherboard
  • Ubuntu 18.04 LTS

The errors that I get are below, I am able to get past only by removing both the new 8gB rams and then taking the original installed RAM out and putting them back in[only the original one’s and not then new ones](not sure if that solved it)

enter image description here

Are exceptions as control flow considered a serious antipattern? If so, Why?

Back in the late 90’s I worked quite a bit with a code base that used exceptions as flow control. It implemented a finite state machine to drive telephony applications. Lately I am reminded of those days because I’ve been doing MVC web apps.

They both have Controllers that decide where to go next and supply the data to the destination logic. User actions from the domain of an old-school telephone, like DTMF tones, became parameters to action methods, but instead of returning something like a ViewResult, they threw a StateTransitionException.

I think the main difference was that action methods were void functions. I don’t remember all the things I did with this fact but I’ve been hesitant to even go down the road of remembering much because since that job, like 15 years ago, I never saw this in production code at any other job. I assumed this was a sign that it was a so-called anti-pattern.

Is this the case, and if so, why?

Update: when I asked the question, I already had @MasonWheeler’s answer in mind so I went with the answer that added to my knowledge the most. I think his is a sound answer as well.

Are Result objects the cleaner way to handle failure, than exceptions? [duplicate]

This question already has an answer here:

  • Are error variables an anti-pattern or good design? 11 answers

I was watching the following video by Vladimir Khorikov, which recommends to “Refactoring Away from Exceptions” – Applying Functional Principles in C# – Refactoring Away from Exceptions and instead using a Result object. You can also find a blog about it here: – Functional C#: Handling failures, input errors

To summarize it, the recommendation is to prefer returning a result object then throwing an exception. Exceptions should be used to signalize a bug only. The arguments for this approach are the following:

  • Methods which throws exceptions are not “honest”. You can’t recognize if a method is expected to fail or not, by looking at its signature.
  • Exception handling adds a lot of boiler plate code.
  • When exceptions are used to control the flow, it has a “goto” semantic, where you can jump to specific line of code.

On the other hand return values can be ignored (at least in C#), which exceptions can not.

Is it a good idea to refactor a existing enterprise application in this direction? Or is a less radical approach the better one? (I belive that it make sense for sure to avoid Vexing exceptions by using return types for method like ValidateUserInput(string input))

Note that Are error variables an anti-pattern or good design? is a similar question. The difference is, that I am not talking about “Error by magic values” (returning a error code or even worse null) which is clearly an anti pattern. I am talking about the pattern presented by Vladimir Khorikov, which doesn’t have the same drawbacks like just returning a primitive error code. (For example: Result objects have a error message, like exceptions does)