code: def test_constructor_errors(self):
      msg = "time data must be specified only with hour and minute"
      with pytest.raises(ValueError, match=msg):
          CustomBusinessHour(start=dt_time(11, 0, 5))
      msg = "time data must match '%H:%M' format"
      with pytest.raises(ValueError, match=msg):
          CustomBusinessHour(start="AAA")
      msg = "time data must match '%H:%M' format"
      with pytest.raises(ValueError, match=msg):
          CustomBusinessHour(start="14:00:05")
  
imports: from __future__ import annotations
  from datetime import datetime, time
  import numpy
  import pytest
  from pandas._libs.tslibs import Timestamp
  from pandas._libs.tslibs.offsets import BusinessHour, CustomBusinessHour, Nano
  from pandas.tests.tseries.offsets.common import assert_offset_equal
  from pandas.tseries.holiday import USFederalHolidayCalendar
label_desc: Use image node_id 1 for calling the TestCustomBusinessHour obj's underlying member method code with example usage: obj.test_constructor_errors() without return types