Take a look at the following code snippets. Which of them will print the error traceback with the message DateDelimiterError: You should use the '/' sign as a delimiter.? Choose all the correct options.
A.
class DateDelimiterError(Exception):
print("You should use the '/' sign as a delimiter.")
date = input()
if '/' not in date:
raise DateDelimiterError
else:
print(date)
B.
class DateDelimiterError(Exception):
pass
date = input()
if '/' not in date:
raise DateDelimiterError("You should use the '/' sign as a delimiter.")
else:
print(date)
C.
class DateDelimiterError(Exception):
def __str__(self):
return "You should use the '/' sign as a delimiter."
date = input()
if '/' not in date:
print(DateDelimiterError)
else:
print(date)
D.
class DateDelimiterError(Exception):
def __str__(self):
return "You should use the '/' sign as a delimiter."
date = input()
if '/' not in date:
raise DateDelimiterError
else:
print(date)