JavaScript Как поднять ошибку

  if (..condition..) {
    throw 'Error message';
  }
Smiling Stoat