original_string: public function newException(string $code, $value): Exception
      {
          $exception = $this->getException($code);
  
          return new $exception(
              strtoupper(Str::kebab($this->getManager()->getName())),
              strtoupper(Str::kebab($this->getName())),
              $value
          );
      }
code: public function newException(string $code, $value): Exception
      {
          $exception = $this->getException($code);
  
          return new $exception(
              strtoupper(Str::kebab($this->getManager()->getName())),
              strtoupper(Str::kebab($this->getName())),
              $value
          );
      }
code_tokens: public function newException ( string $ code , $ value ) : Exception { $ exception = $ this -> getException ( $ code ) ; return new $ exception ( strtoupper ( Str :: kebab ( $ this -> getManager ( ) -> getName ( ) ) ) , strtoupper ( Str :: kebab ( $ this -> getName ( ) ) ) , $ value ) ; }
docstring: Create a new instance of exception.
  
  @param string $code
  @param mixed  $value
  
  @return \Exception
docstring_tokens: Create a new instance of exception .