# BaseWrappedException.HostLocation

`com.jsmacrosce.jsmacros.core.language.BaseWrappedException.HostLocation`

A source location carrying host display text, such as `Native Method`, a file location, or `Unknown Source`.  
 ```js
const HostLocation = Java.type("com.jsmacrosce.jsmacros.core.language.BaseWrappedException$HostLocation");  
Chat.log(new HostLocation("Unknown Source").toString());  
 ```

Nested type declared in [BaseWrappedException](BaseWrappedException.md).

## Constructors

### new BaseWrappedException.HostLocation {#com.jsmacrosce.jsmacros.core.language.BaseWrappedException.HostLocation_constructor-String-}

```js
new BaseWrappedException.HostLocation(String location)
```

Stores the supplied host display-location text.

**Parameters:**
- `location`: host display-location text

## Fields

### location {#com.jsmacrosce.jsmacros.core.language.BaseWrappedException.HostLocation_location}

```js
location: String
```

Stored host display-location text.

## Methods

### toString {#com.jsmacrosce.jsmacros.core.language.BaseWrappedException.HostLocation_toString-}

```js
toString(): String
```

Returns the stored display-location text unchanged.

**Returns:** stored display-location text
